wood burning stoves 2.0*
The moose likes Servlets and the fly likes Calling another web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Calling another web application" Watch "Calling another web application" New topic
Author

Calling another web application

sruthi reddy
Ranch Hand

Joined: Aug 03, 2008
Posts: 34
Hi
I have a situation where i need to call another web application from my application.When user clicks a registration link in my current application, then its should go the registration page of another application which has further registration code and as soon as user done with registration, user should return to current application. Can you please suggest me how to do this , if possible please provide me with all possible solutions.
Thanks
Sruthi
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4658
    
    5

One usually does this using the redirection output of the JSP that your servlet uses. And you need either a flag or a "come from" attribute in the other login so it can know to dispatch back
Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
Assuming the registration processing application is very generic entity, which other applications can invoke too.

You can do send-redirect to the registration application url with one extra parameter 'target' as your application url.

Once the registration is over, the registration application can sendredirect to the 'target' url so user would be presented with your application again.
sruthi reddy
Ranch Hand

Joined: Aug 03, 2008
Posts: 34
Thanks pat and santhosh.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling another web application