关于按钮和链接的问题 <input type="button" class="btn_grey" value="搜索1" onclick="window.location.href('customInfoAction.action?submitFlag=toList')"> action后面有个问号在发贴子的时候没写上.这样还是没法实现. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果想通过更改地址栏的方式来传递参数,建议使用javascript语句实现,同时将页面中的参数通过JavaScript加到地址栏后面,在使用Button的onclick事件例<script language="javascript"> function doSearch(){ var type=document.getElementById("type").value; var key = document.getElementById("type").value; window.location="customInfoAction.action?submitFlag=toList&type="+type+"&key="+key;}<script><input type="button" class="btn_grey" value="搜索1" onclick="doSearch()"> 跳转时,把参数一个个跟上,这样不太好最后存储在request内 <script language="javascript"> function doSearch(){ with(document.getElementById(form)) action = "customInfoAction.action"; method = "post"; submit();} <script> 这样就可以把表单的值传过去了 局域网内系统,怎么解决客户端flash安装问题? 新的需求。不知道该如何做啊。求高手 一个很复杂的动态页面设置,请各位高手帮忙,谢谢 页面拖到效果 jsp+mysql 插入中文数据问题? struts标签破坏图片路径的问题 STRUTS向转发页面传递参数 是否能将html中图片以及FLASH转换.txt文件 如何用main模拟上传文件的jsp? 如何在jsp页面中使用Jtree及Jtable来显示数据? jsp与数据库的问题 tomcat的配置问题
例
<script language="javascript">
function doSearch(){
var type=document.getElementById("type").value;
var key = document.getElementById("type").value;
window.location="customInfoAction.action?submitFlag=toList&type="+type+"&key="+key;
}
<script><input type="button" class="btn_grey" value="搜索1" onclick="doSearch()">
最后存储在request内
function doSearch(){
with(document.getElementById(form))
action = "customInfoAction.action";
method = "post";
submit();
}
<script>
这样就可以把表单的值传过去了