This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Servlets and the fly likes Request Dispatcher problem !! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Request Dispatcher problem !!" Watch "Request Dispatcher problem !!" New topic
Author

Request Dispatcher problem !!

Manoj Singh
Ranch Hand

Joined: Aug 10, 2000
Posts: 41
HI guys !
I am passing my control from a servlet to a jsp page using RequestDispatcher..this is the code I am using..
RequestDispatcher rd = getServletContext().getRequestDispatcher("/jsp/parseResult.jsp");
rd.forward(request,response);
I am getting this error :
javax.servlet.ServletException: non-HTTP request or response
please advise me onnhow to slove this problem ! I would appreciate any help !
ThanX
Manoj
[This message has been edited by Manoj Singh (edited October 08, 2001).]


Sun Certified Java 2 Programmer<BR>" Only those who will risk going too far can possibly find out how far one can go "
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
Hmm... I suggest you print the HttpServletRequest.getMethod(), which "Returns the name of the HTTP method with which this request
was made, for example, GET, POST, or PUT."

To see what's happening with "non-HTTP request or response".
[This message has been edited by Tony Alicea (edited October 08, 2001).]


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Manoj Singh
Ranch Hand

Joined: Aug 10, 2000
Posts: 41
HI Tony !
Thanks for the help ! Now it is working ..as I changed "forward" to "include", though the parameters which I am passing still remain the same !! and so does everything else.
ThanX again
Manoj
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Request Dispatcher problem !!
 
Similar Threads
Not including the template when usin RequestDispatcher
RequestDispatcher not working properly in Websphere
RequestDispatcher problem
"jsp:include page=..." and refresh
Problem with getRequestDispatcher