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