今天将工程部署到WAS6.1时发现request.getQueryString()返回为NULL,在TOMCAT上是正常返回结果的.经过查找发现,应该是WAS采用的serlet api 版本的问题,改下写法就可以.如下:
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()