Hi, I am creating an jsp admin screen to allow users to modify program
setting found in web.xml. The below code reads the context paramters and
creates a simple table. What I can't figure out to read is the attribute
comments. Any idea how to do this.

Any help is appreciated.

Alex

<%
  ServletContext context=config.getServletContext();
  Enumeration enum=context.getInitParameterNames();
  String name;
  String value;
  while(enum.hasMoreElements())
  {
    name=(String)enum.nextElement();
    value=(String)context.getInitParameter(name);
     %>
    <TR><TD><%=name%></TD><TD><INPUT TYPE="text" size="40" value="<%
=value%>"></TD><TD></TD></TR>
<%
  }
%>




 

Reply via email to