Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to use RequestDispatcher to access another web application servlet

843842Feb 3 2009 — edited Feb 3 2009
There are 2 web applications. I am in a servlet in one of the webapp wherein i have written a code to
dispatch the request to the servlet present in other web app(alfresco).

I am doing it as follows..

RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/../../../../../../../alfresco/WEB-INF/classes/org/alfresco/sample/admin/CreatingUser");
dispatcher.forward(request, response);

is this a proper approach...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2009
Added on Feb 3 2009
2 comments
109 views