action的路徑怎麼寫
- 綜合知識
- 關注:8.07K次
1. 請問 form 的action路徑怎麼填
<form id="sform" action="<%=request.getContextPath() %>/Info1Servlet?operate=1" method="post">
問好後面可以增加你要的引數,不要的話就去掉
<form id="sform" action="<%=request.getContextPath() %>/Info1Servlet" method="post">
info1Servlet:是你在web.xml檔案配置的路徑名
request.getRequestDispatcher("/工程名/student/info/info1.jsp ").forward(request, response);
- 文章版權屬於文章作者所有,轉載請註明 https://shqsg.com/zonghezhishi/mwvy0n.html