Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

request.getQueryString() doesn't work ?  RSS feed

 
mike zhang
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a servlet "MyServlet" which has a "forward(req, res)" to a JSP page. Now in my destination JSP page I want to get the information of the servlet's query string part.
For example, if request is http://host/my-app/servlet/MyServlet?param=abc¶m2=aaa"
then I want to see "param=abc¶m2=aaa" from JSP by using request.getQueryString(). However, this worked well with Older version of JRun, but not with JRun 3.1. When I used JRun 3.1 this returns null.
Does anybody have such experience ?
 
Bosun Bello
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Verify that you did override doGet in your code.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!