• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Request Dispatcher problem !!

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Manoj Singh
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic