3 回答

TA貢獻(xiàn)1860條經(jīng)驗 獲得超9個贊
sample.jsp
/WEB-INF
/WEB-INF
.
samplejsp `-- WebContent |-- WEB-INF `-- sample.jsp
/WEB-INF
doGet()
request.getRequestDispatcher("/WEB-INF/sample.jsp").forward(request, response);
另見:

TA貢獻(xiàn)1851條經(jīng)驗 獲得超5個贊
src |-html\|-jsp\
<form action="sample.jsp" method=get> <input type =submit value="submit"></form>
編輯

TA貢獻(xiàn)1780條經(jīng)驗 獲得超4個贊
sample.html
http://localhost:8080/samplejsp/sample.html
sample.jsp
http://localhost:8080/samplejsp/sample.jsp
<form action>
http://localhost:8080/samplejsp/sample.jsp
sample.jsp
<form action="sample.jsp">
添加回答
舉報