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
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
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.