关闭→
当前位置:科普经验站>综合知识>action的路径怎么写

action的路径怎么写

科普经验站 人气:9.71K
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);

TAG标签:#路径 #action #