I hear you loud and clear. There's really no way that you could be
getting "null" from that method invocation (unless of course, your query
string looks like http://...?name1=null).
Printing the return value of getParameter("name1") will print "null" or
"", however.
Are you using the JServ modu
I think you may be misunderstanding me. In the situation where I'm
processing a request for a URL like
http://whatever.com/servlets?name1=&name2=someVal
getParameter (name1) should return either a null pointer or a blank string.
Right now, I'm getting the string value "null", ie a four character
HttpServletRequest.getParameter("name1") should return "" in the case of a
URL like http://whatever.com/servlets?name1=&name2=someVal
Regardless, this is still problematic, since you probably want that value
to be null.
What I've done to get around this is provide my servlets with the
following
I'm seeing some weird behaviour with parameters that are passed to servlets
as blank strings, ie in a URL such as
http://machine/zone/servlet?param1=¶m2=. These parameters end up having
the value "null" (ie a 4-character string) rather than either a blank
string or a null pointer, which is what I