A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
Forwarding a request to another servlet in a different WEB-APP
Joined: Mar 07, 2001
Mar 01, 2002 14:13:00
Can this be done?
Forwarding a request from one
in one web-app (.war file) to another servlet in another (.war) file?
Joined: Jun 28, 2001
Mar 01, 2002 14:28:00
Yep. See ServletContext.getRequestDispatcher(). Matter of fact, you should also be able to use the context's getNamedDispatcher() as well.
Hope that helps.
Scott<br />-----------------<br />SCJP, SCJD, SCWCD<br />XML, UML, WLS6.0
I agree. Here's the link:
subject: Forwarding a request to another servlet in a different WEB-APP
difference between Jsp forward and sendRedirect
Servlets and Database Connection
absolute URL path problem in jsp:forward ... tag
How to save the servlet response to a file !
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015