摘要: 在子窗口中加入代码:<bodyonLoad="refreshParent()">......</body><scriptlanguage="javascript">functionrefreshParent(){window.opener.location.href=window.opener.location.href;if(window.opener.progressWindow)window.opener.progressWindow.close();alert("保存成功");window. 阅读全文
posted @ 2012-06-09 22:25 积累从点滴开始 阅读(4808) 评论(0) 推荐(0) 编辑
摘要: 在页面的顶部加入代码:<aname="startPotion"></a>然后置顶按钮:<inputtype="button"value="置顶"onclick="toTop()">js函数:functiontoTop(){Window.location.href="#startPotion"}置底的方法同置顶 阅读全文
posted @ 2012-06-09 22:22 积累从点滴开始 阅读(4153) 评论(0) 推荐(0) 编辑
摘要: <actionname=""class=""method=""><resulttype="redirect-action"><paramname="actionName">重定向的目标action名字</param><paramname="namespace">重定向目标所属namespace,默认的不用写</param>(下面就是罗列出携带的参数)<paramname=""&g 阅读全文
posted @ 2012-06-09 22:20 积累从点滴开始 阅读(2634) 评论(0) 推荐(0) 编辑
摘要: $.ajax({type:"post", //传递方法类型:postdataType:"json", //数据类型:jsondata:{'agriculturalProductType.typeName':typeName,......}, //参数列表url:"*.action", //执行struts的urlerror:function(){......}, ... 阅读全文
posted @ 2012-06-09 22:18 积累从点滴开始 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Ibatis的查询语句,在where中如果查询条件为%或_等特殊字符时,会把该表所有记录都显示出来,所以这些字符需要特殊处理一下:比如在查询条件中,输入的查询条件中如果带有%,当时是在工具类包中定义了一个特殊的工具类处理特殊字符的代码publicstaticStringspecialCharacterManage(Stringchars){if(null!=chars){if(chars.contains("%")){chars=chars.replace("%","\\%");}if(chars.contains("_&q 阅读全文
posted @ 2012-06-09 22:05 积累从点滴开始 阅读(2780) 评论(1) 推荐(0) 编辑
摘要: <tdalign="right"width="190">备案类型:</td><td><selectname="recordType"id="recordType"class="input_select"><optionvalue=""<s:iftest="recordType==null">selected="selected"</s:if>>不限< 阅读全文
posted @ 2012-06-09 22:01 积累从点滴开始 阅读(1240) 评论(0) 推荐(0) 编辑