action的路径怎么写

来源:趣味经验馆 8.65K
1. 请问 form 的action路径怎么填

<form id="sform" action="<%=request.getContextPath() %>/Info1Servlet?operate=1" method="post">

action的路径怎么写

问好后面可以增加你要的参数,不要的话就去掉

<form id="sform" action="<%=request.getContextPath() %>/Info1Servlet" method="post">

info1Servlet:是你在web.xml文件配置的路径名

request.getRequestDispatcher("/工程名/student/info/info1.jsp ").forward(request, response);

热门标签