This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request dispatchers behaving abnormally

 
Abdul Kalam
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
consider this,
1. I have a serv1 which has its get method implementede and has some parameters obtained from a previous servlet now i use requestdispatchers forward or include method to call another servlet serv2
getServletContext().getRequestDispatcher("servname?aa=12").forward(request,response)
Now when i obtain the request parameters in the get method of the called servlet i get the entire parameters including aa.
2.Now if i try the same in post method then till serv1 i get all the parameters but in the called servlet when i try to retrieve the parameters it does not return anything.
The strange thing is when i print the content length and query string then the querystring consists of all the parameters while the content length contains some length value.
Why is this happening
bye
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic