tomcat-users mailing list archives

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

-----Original Message-
[Thierry Leveque] ----
From: Carlos de la Flor []
Sent: 27 février, 2001 16:08
Subject: get init parameters

in the web.xml i have some init parameters:
<param name>name</param-name>
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?

View raw message