jQuery in Action, 2nd edition*
The moose likes Servlets and the fly likes Passing control from one application to another. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Passing control from one application to another." Watch "Passing control from one application to another." New topic
Author

Passing control from one application to another.

pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 410

Hi All,

Can I supply control from one application to another application using servlets? For example: I have a application A on one server and another application B on another server. Now can I pass control to application B from Application A?


Pawan Chopra
SCJP - DuMmIeS mInD
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Yes


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 410

Ben Souther wrote:Yes


Thanks and I am sorry that I did not ask how?
d edgar
Greenhorn

Joined: Apr 09, 2010
Posts: 4
I think what you want is a redirect.

When your App A is done, use HttpServletResponse.sendRedirect(site) to ship off the request.

Good luck.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Passing control from one application to another.
 
Similar Threads
Child window accessing parent window error
controlling the jboss instance which serves the incoming request on Apache
Urgently reqd.. Security of web applications
help needed
Transferring control from java web service to .net application