Posted on 2002-04-30
I have a quick question.
What is the difference between the following:
String test = req.getParameter("Something").trim();
String test = "";
test = req.getParameter("Something").trim();
If Something is not in the querystring I get an error.
For some reason when i use the first example I get a nullpointer exception. If I use the second example it works with out a problem. I am using JRun 2.3.
Thank You in advance.