Click here to Skip to main content
15,900,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey guys...i am new to 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.



1 solution

for connecting pages by "submit" button you need to add "action=YOUR-PAGE" in form attributes. see here

or maybe try to use redirect to you page.
Share this answer

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