Problem with request.getQueryString() in Websphere Application Server

Hi,

I am facing a problem with the request.getQueryString() metjhod in WebSphere Applicaiton Server.

The same code when I run on Tomcat web server , I dont get any errors and the application works fine.

But when I run the same application on WebSphere I get a NullpointerException.

Does WebSphere support this method or not?

I am having a doubt that websphere does not support this method because of some security.

Please kindly help me in solving this problem

Thanks in advance

Rakesh

[545 byte] By [rakesh.sagara] at [2007-10-3 3:21:34]
# 1
Did you get any more information on your problem. We are facing the same issue. It used to work before. But now, it returns a null. Its as if WAS has stopped recognizing the code. Please let me know.
flyeagles007a at 2007-7-14 21:13:53 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Hi, The problem is solved by using sessions.If ur request is passing through multiple servlets then get the queryString in one of the servlets and put it in session and retrieve it where ever u want. Bye
rakesh.sagara at 2007-7-14 21:13:54 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
I am also facing similar problem in WAS ND6.0.11.Have you got any solution?Regards,Santosh Ibrampurkar
santoshmia at 2007-7-14 21:13:54 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4

I have got the solution for the problem.

The null value is returned by request.getQueryString() is due to change in requestdispatcher implementaion in servlet 2.4 specification

The error can by resolved by using request.getAttribute("javax.servlet.forward.query_string") instead of request.getQueryString() .

For more info pl refer to

http://www.caucho.com/resin-3.1/webapp/faq.xtp

santoshmia at 2007-7-14 21:13:54 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...