开心生活站

位置:首页 > 综合知识 > 

action的路径怎么写

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);

标签:action 路径