File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forwarding request to same servlet

 
Kripal Singh
Ranch Hand
Posts: 254
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to forward the request to the same servlet (but different URL). E.g. when �servlet/MyServlet?p=1� is loaded it forward the request to �servlet/MyServlet�. Currently I am using the sendRedirect method but it is slow. I tried using the requestDispatcher.forward method but since it is for an external resource it not working. Something like

Is there any way I can do it that is faster then sendRedirect method.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic