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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 4646
    
    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.
 
Don't get me started about those stupid light bulbs.
 
subject: Calling another web application
 
Similar Threads
How to dynamically remind the user of registration errors?
Login Using 3 form
how to read html textbox value using html editor not in browser
how to reject multiple logins
Tracking user