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,
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 =
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
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
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