Click here to Skip to main content
15,891,846 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey guys...i am new to java..so i need ur help.

I have created a small project based on JSP and Servlets using NetBeans 6.0 as a platform.

I have taken 2 pages(index.jsp and success.html).

In my index.jsp page i have created a simple HTML form using html tags, in which there are 2 buttons "Submit" and "Reset". I am facing the problem in connecting one jsp page(index.jsp) to the other page(which is success.html)...when i click on the "Submit" button.

So can any1 help me regarding this problem.

Thanks

Prateek
Posted

1 solution

for connecting pages by "submit" button you need to add "action=YOUR-PAGE" in form attributes. see here http://www.w3schools.com/TAGS/att_form_action.asp

or maybe try to use redirect to you page.
http://www.exampledepot.com/egs/javax.servlet.jsp/redirect.html
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900