Re: Null pointer Exception while sending multiple list options

2003-03-14 Thread Sanchez, Enrique (CORP, DDEMESIS)
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) {

Re: JSP page refresh option

2003-03-13 Thread Sanchez, Enrique (CORP, DDEMESIS)
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

Re: Error pages

2003-02-28 Thread Sanchez, Enrique (CORP, DDEMESIS)
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,

Re: Reading checkboxes's values

2002-04-30 Thread Sanchez, Enrique (CORP, DDEMESIS)
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.