tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thierry Leveque <tleve...@wysdom.com>
Subject RE: get init parameters
Date Tue, 27 Feb 2001 21:10:55 GMT
 
Something simple has this....
 
<%
    String initString = getServletContext().getInitParameter("name");
%>
 
<%=initString%>
 
Basic Java!!
 
Thierry

-----Original Message-
[Thierry Leveque] ----
From: Carlos de la Flor [mailto:linux@lpis.com]
Sent: 27 février, 2001 16:08
To: tomcat-user@jakarta.apache.org
Subject: get init parameters


in the web.xml i have some init parameters:
<param name>name</param-name>
param-value>value</param-value>
in the jsp page with the <%=request.getInitParameter("name")%>
i print the value.
But how can i this value put in a string? (String name2 = ... )??
or how can i put the value into this:?
<%=w.myservlet(XX)%> the XX must to be the value of the init parameter.
Is this posibnle?
can anybody help me?
thanks
Carlos


Mime
View raw message