The issue in first approach is functionality working fine, but user end user experience a blank page for a movment, how to address the blank page appearing issue
Main Topics
Browse All TopicsHi,
I would like send the userId and password values as post parameters from my Servlet to outside application URL, i have approach like forwarding the request to temp JSP and maintaing userId and password as hidden values and calling onload jscript function, which submits the request to URL.
but the problem with approach is end user experience blank page for a movment. please let me know right approach for sending the post parametrs from servlet
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Honestly, the best approach might be to just put some text/graphics on the first page saying something along the lines of "please wait while the page you requested is loading. If it does not load, then <fill in here>". That way it's not blank, and if there remote website is down or something, users won't be confused as to what is happening.
Business Accounts
Answer for Membership
by: geowrianPosted on 2009-11-01 at 23:13:21ID: 25717506
There's a few ways to do it, depending largely on what access you have to the other system.
1) The method you described. Works reliably with any server via the user's browser. This is a very common choice. However, make sure to always use SSL otherwise the form details may get cached by the browser, or intercepted.
2) Have the servlet perform the POST, then send the resulting headers, cookies, output, etc. to the browser. Still works with many "foreign" systems (i.e. you don;t need access to them), but gets sticky when dealing across domains with cookies. It works really well when only going across subdomains. It also has the drawback of using the server's resources (memory, thread, bandwidth, etc.) instead of the user's resources.
3) If you have access to the "foreign" server, you can setup a served document on the server that can be used for securely passing the data, setting cookies, etc.