aspose file tools*
The moose likes Servlets and the fly likes Forwarding request to same servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Forwarding request to same servlet" Watch "Forwarding request to same servlet" New topic
Author

Forwarding request to same servlet

Kripal Singh
Ranch Hand

Joined: Jul 26, 2001
Posts: 254
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.


# Help an unprivileged kid.<br /> Whatever u do will make a difference...<br /> ...to a child's life & ur own #<br /><a href="http://www.cry.org/" target="_blank" rel="nofollow">www.cry.org/</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Forwarding request to same servlet