Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to call a servlet and stay at the JSP Page?

Status
Not open for further replies.

thelordoftherings

Programmer
May 16, 2004
616
IL
Hello,

I would like to create a button that by pressing it will activate a Servlet but the JSP page will remain and the page won't remove to the servlet page. How do I do that?
 
You really can't, the best you can do is call the servlet and have the servlet redirect to the jsp page when it is done.

Or you can launch the servlet in a new window using the 'target' parameter. That will leave the base jsp alone.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top