jsp如何在提交时通过javascript对页面成员赋值.并获取! 提交后应用request.getParameter("OPERATION_TYPE")取值 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <%@ page contentType="text/html; charset=UTF-8" %><html>注:该页面名为jsp4.jsp<body bgcolor="#ffffff"><SCRIPT language="JavaScript" type="text/JavaScript">function OperateClick(OperateTypeStr){ document.helpme.OPERATION_TYPE.value=OperateTypeStr; document.helpme.submit(); }</SCRIPT><%=request.getParameter("OPERATION_TYPE")%><FORM name="helpme" method="post" action="jsp4.jsp"><a href="javascript:OperateClick('sl_amend');">Submit</a><input type="hidden" name="OPERATION_TYPE" value=""></form></body></html> <%@ page contentType="text/html;charset=gb2312" %><html><body bgcolor="#ffffff">注:该页面名为jsp4.jsp<SCRIPT language="JavaScript">function OperateClick(OperateTypeStr){ document.helpme.OPERATION_TYPE.value=OperateTypeStr; document.helpme.submit(); }</SCRIPT><%if(request.getParameter("OPERATION_TYPE")==null)out.println("传值为空");elseout.println(request.getParameter("OPERATION_TYPE"));%><form name="helpme" method="post" action="test.jsp"><input type="text" name="OPERATION_TYPE" value=""><input type="submit" name="submit" onclick="javascript:OperateClick('sl_amend');"></form></body></html> java 获取邮箱的常用联系人 求struts2的一个网站例子 想了解一下struts2 跪求<jsp数据库开发实例精粹>源码 applet中使用类加载器加载的Jar包的权限如何设置? hibernate定义表主键的问题,相信大家都遇到过 希望大家每人把心中一直的一个信仰或者经典分享给大家 怎样防止别人看到 ROOT 目录下的文件内容 使用JAVABEAN有什么好处? how to 连接到sqlserver2000? 初级问题 在这两种情况下,数据如何交换?急!
<html>
注:该页面名为jsp4.jsp
<body bgcolor="#ffffff">
<SCRIPT language="JavaScript" type="text/JavaScript">
function OperateClick(OperateTypeStr){
document.helpme.OPERATION_TYPE.value=OperateTypeStr;
document.helpme.submit();
}
</SCRIPT>
<%=request.getParameter("OPERATION_TYPE")%>
<FORM name="helpme" method="post" action="jsp4.jsp">
<a href="javascript:OperateClick('sl_amend');">Submit</a>
<input type="hidden" name="OPERATION_TYPE" value="">
</form>
</body>
</html>
<html>
<body bgcolor="#ffffff">
注:该页面名为jsp4.jsp
<SCRIPT language="JavaScript">
function OperateClick(OperateTypeStr){
document.helpme.OPERATION_TYPE.value=OperateTypeStr;
document.helpme.submit();
}
</SCRIPT>
<%
if(request.getParameter("OPERATION_TYPE")==null)
out.println("传值为空");
else
out.println(request.getParameter("OPERATION_TYPE"));
%>
<form name="helpme" method="post" action="test.jsp">
<input type="text" name="OPERATION_TYPE" value="">
<input type="submit" name="submit" onclick="javascript:OperateClick('sl_amend');">
</form>
</body>
</html>