当前位置:懂科普 >

综合知识

> action的路径怎么写

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 路径
  • 文章版权属于文章作者所有,转载请注明 https://dongkepu.com/zonghezhishi/gwy9nz.html