Venkat,
the getParameterValues method in fact does not throw a NullPointerException, when
parameter does not exist (no options selected), it just return null. So you could use
some code like this
String[] prog=request.getParameterValues(prog_name);
if (prog == null) {
You will need to set the appropriate HTTP header attributes to prevent the dynamic
content output by the JSP page from being cached by the browser.
Just execute the following scriptlet at the beginning of your JSP pages to prevent
them from being cached at the browser. You need both the
If you are including jsp with jsp:include element you need to put %@ page
errorPage=... tags on every file, including subpages. Otherwise, using the include
directive it is not necessary.
Take a look at this link:
http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSPIntro8.html
Regards,
Nancy,
You could use the getParameterValues() method, here is the javadoc description:
public java.lang.String[] getParameterValues(java.lang.String name)
Returns an array of String objects containing all of the values the given request
parameter has, or null if the parameter does not exist.