tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett W. McCoy" <bmc...@chapelperilous.net>
Subject Re: get init parameters
Date Tue, 27 Feb 2001 21:29:46 GMT
On Tue, 27 Feb 2001, Carlos de la Flor wrote:

> 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?

<% String name2 = request.getInitParameter("name"); %>
<%=name2%>

-- Brett
                                     http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
Truth will out this morning.  (Which may really mess things up.)



Mime
View raw message