NetBeans中的JSP页面 [英] JSP Pages in NetBeans
问题描述
大家好...我是java的新手,所以我需要您的帮助.
我使用NetBeans 6.0作为平台,创建了一个基于JSP和Servlet的小项目.
我已经用了2页(index.jsp和success.html).
在index.jsp页面中,我使用html标签创建了一个简单的HTML表单,其中有2个按钮提交"和重置".我在将一个jsp页面(index.jsp)连接到另一页面(success.html)时遇到了问题……当我单击提交"按钮时.
因此,任何人都可以在这个问题上为我提供帮助.
谢谢
Prateek
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
推荐答案
用于通过提交"按钮连接页面,您需要在表单属性中添加"action = YOUR-PAGE".参见此处 http://www.w3schools.com/TAGS/att_form_action.asp
或尝试使用重定向到您的页面.
http://www.exampledepot.com/egs/javax.servlet.jsp/redirect.html
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
这篇关于NetBeans中的JSP页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!