tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TOMITA_ALEX_NONLI...@LILLY.COM
Subject Access Parameter
Date Tue, 13 Aug 2002 16:32:05 GMT
Can I use something like this in my jsp page (instead of a java sevlet) to 

get the parameter name?,
before that I set the parameter in my web.xml file like this:

<context-param>
      <param-name>parameter name</param-name>
      <param-value>localhost</param-value>
</context-param>

String value =  getServletContext().getInitParameter("parameter name");

is it only works in a sevlet or will it work in a jsp page too???

thanks again 
Alex Tomita

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message