Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

request.getParameter

Status
Not open for further replies.

SeAL

Programmer
Mar 15, 2001
139
FR
Hi peeps,

I'm new to all this stuff and I have a little question:

Why request.getParameter("err") make me an Error 500 when this parameter does not exists?
I believed it will return me "null"

Does someone have an issue for this problem, I must check if this parameter exists or not.
 
Show the rest of your code. I have a feeling that is not what is causing the error. Wushutwist
 
I'm sure this is it 'cose when I comment out it, my page goes on without any trouble.

By the way I found a solution, I get the getQueryString and make an indexOf("myParam") on it to test if he's here or not...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top