This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Servlets and the fly likes Request dispatchers behaving abnormally Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Request dispatchers behaving abnormally" Watch "Request dispatchers behaving abnormally" New topic
Author

Request dispatchers behaving abnormally

Abdul Kalam
Greenhorn

Joined: May 28, 2001
Posts: 5
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


Abdul Kalam
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Request dispatchers behaving abnormally
 
Similar Threads
problem with RequestDispatcher
Get and Post
Servlet --> Jsp with beans
Can you write to output stream after forward?
forward--RequestDispatcher