就是当我点lgoin后页面不会显显示: this is a1=name this is a2=password hello from two.jsp不知道为什么?
这个是我所得的结果: __________ please input your name:|__________| __________ please input your password:|__________||login| go two--> this examples show include works (比如我输入name 与password)当我当点了lgoin后还是显示这个,也就是说原本提交请求后会把 this is a1=name this is a2=password hello from two.jsp 一起显示。而我得出的结果是不一样的。 这个是jsp应用开发详解(第二版)书本上的一个例子。
this is a1=name
this is a2=password
hello from two.jsp不知道为什么?
__________
please input your name:|__________|
__________
please input your password:|__________||login|
go two-->
this examples show include works
(比如我输入name 与password)当我当点了lgoin后还是显示这个,也就是说原本提交请求后会把
this is a1=name
this is a2=password
hello from two.jsp
一起显示。而我得出的结果是不一样的。
这个是jsp应用开发详解(第二版)书本上的一个例子。
<jsp:param name="a2" value="<%=request.getParameter("password")%>"/>
的后面吧!
今天没时间,你自己测试吧!
static.html
你把它改成jsp试试!
<form method=post action="jsp_include.jsp">
<table>
<tr>
<td>please input your name:</td>
<td>
<input type=text name=name>
</td></tr>
<tr><td>input you password:</td>
<td>
<input type=text name=password>
</td>
</tr>
<tr>
<td>
<input type=submit value=login>
</td>
</tr>
</table>
</form>