| Author |
Servlet and JSP
|
Suresh Shah
Greenhorn
Joined: Oct 29, 2003
Posts: 3
|
|
I have the following in web.xml. <context-param> <param-name> TheParam </param-name> <param-value> ParamValue </param-value> <description>The quick brown fox.</description> </context-param> using the following I am able to get all <param-name> and all <param-value> displayed in a JSP form. <P> <TABLE border cellspacing=0 cellpadding=5> <tr> <th colspan=3 align=center>context.getInitParameter</th> </tr> <tr> <th>Parameter Name</th> <th>Value</th> <th>Description</th> </tr> <% for (Enumeration enu = application.getInitParameterNames(); enu.hasMoreElements() { String x = (String)enu.nextElement(); temp = application.getInitParameter(x); %> <tr> <td><%=x %></td> <td><input text value= <%=temp %> ></td> </tr> <% } %> I need to be able to display <description> also. How do I do it?
|
 |
Sri Basavanahally
Ranch Hand
Joined: Oct 07, 2003
Posts: 75
|
|
The description is not a parameter. If you want to display it, put it in as a parameter. -Sri
|
UP THE IRONS !
|
 |
Bosun Bello
Ranch Hand
Joined: Nov 06, 2000
Posts: 1506
|
|
As posted by Sri, do this <context-param> <param-name> TheParam </param-name> <param-value> ParamValue </param-value> <param-name> description </param-name> <param-value> The quick brown fox</param-value> </context-param>
|
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
|
 |
 |
|
|
subject: Servlet and JSP
|
|
|