Re: Configuring Tomcat 5 to not display null value as word null

2004-08-22 Thread Rick Wong
Thanks for the response. Unfortunately, the objects are not necessarily obtained directly from the request parameter. Sometimes data is massaged or obtained from other sources. I was hoping that there is a generic way to override the behavior. Since you mentioned about the used of filter,

Re: Configuring Tomcat 5 to not display null value as word null

2004-08-21 Thread Tim Funk
Use JSTL. c:out value=${param.no_such_thing}/ c:out value=${request.no_such_thing}/ -Tim Rick Wong wrote: Hi, I have the following JSP fragment: case 1 = %=request.getParameter(no_such_thing)% case 2 = ${requestScope[no_such_thing]} The output of the page is ... case 1 = null case 2 =

Configuring Tomcat 5 to not display null value as word null

2004-08-20 Thread Rick Wong
Hi, I have the following JSP fragment: case 1 = %=request.getParameter(no_such_thing)% case 2 = ${requestScope[no_such_thing]} The output of the page is ... case 1 = null case 2 = ... Is there any way that Tomcat can be configured to not display the word null if the value is null? It

Re: Configuring Tomcat 5 to not display null value as word null

2004-08-20 Thread Justin Ruthenbeck
There is no Tomcat magic configuration parameter to make this happen. Instead, take a look at HttpServletRequestWrapper. You can combine that with a Filter to override the behavior of getParameter() for the pages that need it such that it returns instead of null when no such parameter value

Re: Configuring Tomcat 5 to not display null value as word null

2004-08-20 Thread Peng Tuck Kwok
Maybe he could check that in the jsp as well. Then maybe it's a little simpler to do. say (roughly) : . if (request.getParameter(blah)==null) { print something meaningful instead. On Fri, 20 Aug 2004 18:15:48 -0700, Justin Ruthenbeck [EMAIL PROTECTED] wrote: There is no Tomcat