Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher.forward()  RSS feed

 
Augustin Smith
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hey All,

While forwarding a request to other resource(JSP) can I forward the query parameters as well.

Something like



Will this work and is this a good practice?

Thanks
 
Lorand Komaromi
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd rather add them to the HttpServletRequest object as attributes, no need to parse the query string again...

Will this work


Have you tried it..?
 
Augustin Smith
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah that sounds good, to add query params to the request object as attributes.

I haven't tried it. Just wanted to know the correct way of doing it.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!