Re: Parameter value weirdness

1999-04-14 Thread Robert Dietrick
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

Re: Parameter value weirdness

1999-04-14 Thread Jason Proctor
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

Re: Parameter value weirdness

1999-04-14 Thread Robert Dietrick
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

Parameter value weirdness

1999-04-13 Thread Jason Proctor
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