Here is what I have:

Erik Runia

The reason this is not working is that you are using Servlet Level parameters which can only be read from within the servlet.. not a JSP!

To get around this.. use application level parameters within you web.xml file as follows:

Place this xml code within the <web-app> tags in your web.xml.. but not within the <servlet> tags.


repeat for as many as you need...

Then, to read them out in your JSP use the following code:

ServletContext context = getServletContext();
String myValue = context.getInitParameter("theName");

Application level parameters are accessable via the servlet or jsp... and are global to all your applications.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact