當前位置:生活全書館 >

綜合知識

> 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://shqsg.com/zonghezhishi/mwvy0n.html