JSP中参数传递
想问是只写了3.jsp这个页面了,后面的pass=11就不明白了,并没有写这个页面,所以想请大家给一下这方面的资料参考一下谢谢
2.jsp
<html>
<form method=post action="3.jsp?pass=11"> //就是这个不明白,提交的时候为什么到3.jsp与
//3.jsp?pass=11是一样的界面呢?哪里这方面的资料给一下呢,请不要说在BAIDU里自己搜,谢谢
<%
String name=request.getParameter("username");
session.setAttribute("username",name);
%>
Your name is:<%=request.getParameter("username")%>
<br>what's your hobby<input type=text name=hobby>
<input type=submit value=submit>
</form>
</html>