写两个FORM,
或者在把name1的value取出写在test1.jsp后面,再encode一下
或者在TEST1.JSP中把NAME2的内容传给TEST2.JSP.就象Chain of Responsibility模式一样.
或者在把name1的value取出写在test1.jsp后面,再encode一下
或者在TEST1.JSP中把NAME2的内容传给TEST2.JSP.就象Chain of Responsibility模式一样.
解决方案 »
- session存储验证码问题
- Criteria的一个问题
- jsp计数器,当刷新页面时,不增加计数
- 请问要做服务器,用那个版本的linux比较好?
- 高分求助java访问server2000问题!急急急!在线等!
- wzrain(晨雨)的数据库分页类如何调用?
- pb应用调用java的web应用session丢失,请帮帮忙!!!!
- 请教菜鸟问题:myeclipse怎样加载tomcat服务器?急!请前辈指点啊
- 求一高难度javascript算法
- 插入数据库的时候,怎样把输入的文字中的 回车 转化成 <br> 插入到数据库中?
- 请问如何通过Session对象判断这个session是否已经不合法?
- 如何清除IE里面的历史纪录,让后退健失效?!
<head></head>
<body>
<form name=form1 action="test1.jsp">
<table width=40% align="center">
<tr>
<td>名字1:</td><td><input type="text" name="name1" size=10></td>
</tr>
</table>
</form>
<form name=form2 action="test2.jsp">
<table width=40% align="center">
<tr>
<td>名字2:</td><td><input type="text" name="name2" size=10></td>
</tr>
</table>
<p align="center"><input type=button onclick="form1.submit()" value=提交1>
<input type=submit value=提交2></form>
</body>
</html>
http://expert.csdn.net/Expert/topic/1136/1136597.xml?temp=.2595178
<head></head>
<body>
<table width=40% align="center">
<tr>
<td>名字1:</td><td>
<form name=form1>
<input type="text" name="name1" size=10></td>
</form>
</tr>
<tr>
<td>名字2:</td><td>
<form name=form2>
<input type="text" name="name2" size=10>
</form>
</td>
</tr>
</table>
<p cursor=hand align="center" onclick="document.form1.action='text1.jsp';document.form1.submit();">提交</p>
<p cursor=hand onclick="document.form2.action='text2.jsp';document.form2.submit();">提交1</a>
</body>
</html>
<p cursor=hand onclick="document.form1.action='text2.jsp';document.form1.submit();">提交1</a>
<%@ page import = "java.net.URL" %>
<%@ page import = "java.sql.*" %>
<%@ page import = "java.lang.System" %>
<%@ page import = "java.util.Hashtable" %>
<%@ page import = "java.util.Enumeration" %>
<%
//保存参数
Enumeration enum = request.getParameterNames();
Hashtable hashReq= new Hashtable();
while(enum.hasMoreElements())
{
Object strKey=enum.nextElement();
hashReq.put(strKey, request.getParameter(strKey.toString()));
}
<%
<html>
<head></head>
<body>
<form name=form1>
<table width=40% align="center">
<tr>
<td>名字1:</td><td><input type="text" name="name1" size=10></td>
</tr>
<tr>
<td>名字2:</td><td><input type="text" name="name2" size=10></td>
</tr>
</table>
<p align="center">
<input type=button onclick="name2.disabled=true;form1.action='test1.jsp';form1.submit()" value=提交1>
<input type=button onclick="name1.disabled=true;form1.action='test2.jsp'; form1.submit()" value=提交2>
</form>
</body>
</html>