锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品国产123区,亚洲+变态+欧美+另类+精品,亚洲狠狠爱一区二区三区http://www.aygfsteel.com/liuyxit/category/9593.html鍏變韓閰搞佺敎銆佽嫤銆佽荊zh-cnThu, 01 Mar 2007 18:26:37 GMTThu, 01 Mar 2007 18:26:37 GMT60- Struts涓簲鐢╯howModalDialog(妯″紡紿楀彛)http://www.aygfsteel.com/liuyxit/articles/39629.html涓夊垁嫻併伄閫嗛涓夊垁嫻併伄閫嗛Thu, 06 Apr 2006 08:43:00 GMThttp://www.aygfsteel.com/liuyxit/articles/39629.htmlhttp://www.aygfsteel.com/liuyxit/comments/39629.htmlhttp://www.aygfsteel.com/liuyxit/articles/39629.html#Feedback0http://www.aygfsteel.com/liuyxit/comments/commentRss/39629.htmlhttp://www.aygfsteel.com/liuyxit/services/trackbacks/39629.html
// 璁懼畾鍏沖洟紿楀彛鐨勫紑鍏?/span>
request.setAttribute( " close " , " NO " );
閫氬父鎴戜滑鍦ㄥ紑鍙慦EB搴旂敤鏃朵細鐢ㄥ埌showModalDialog(妯″紡紿楀彛)鏉ュ鍔犳垨淇敼璁板綍,鑰屽簲鐢ㄦ垨璁劇疆涓嶅綋鏃朵細閫犳垚姝誨驚鐜垨欏甸潰嫻佽漿閿欒錛屼互涓嬪鎴戝湪Struts涓婂簲鐢╯howModalDialog(妯″紡紿楀彛)鏃跺疄鐜版柟娉曟弿榪幫細
銆銆搴旂敤鐨勬儏鍐碉細
銆銆1.鍦ㄧ洰褰曟爲鐨勫彸閿崟涓婇夋柊澧烇紝寮瑰嚭鏂板紿楀彛--showModalDialog(妯″紡紿楀彛)銆?br />銆銆2.褰曞叆鏁版嵁鍚巗ubmit錛岃皟鐢ˋction淇濆瓨鏁版嵁銆?br />銆銆3.鍦ˋction鍒ゆ柇淇濆瓨鏄惁鍑洪敊錛屽嚭閿欐椂榪斿洖鏂板紿楀彛鎻愮ず閿欒錛屾垚鍔熷悗鍏抽棴寮瑰嚭鐨勬柊紿楀彛騫跺埛鏂扮埗欏甸潰鐨勫垎綾繪爲銆?/p>
浠g爜綆鍐欏涓嬶細
鐩綍鏍戦〉闈細
< A HREF ="javascript: addTree();" > 鏂板鑺傜偣 </ A >
< SCRIPT language ='JavaScript' type ='text/javascript' >
function addTree(){
// 鐢ㄤ簬鍑嗗鏂板欏甸潰鎵闇鐨勫厓绱犲噯澶?/span>
var URL = " treeAction.do?method=add&parentid= " ;
if (d.getSelected() == null ){
URL = URL + ' 0 ';
} else {
URL = URL + tree.getSelected();
}
// alert(URL);
window.showModalDialog(URL,window, " center:true; " );
}銆
</ SCRIPT >
鏂板欏甸潰--showModalDialog(妯″紡紿楀彛)錛?br />
<% @ include file = " /include/jsp/taglib.jsp " %>
<!-- save ok! LiuYX -->
< logic:equal name ="close" value ="OK" >
< script language ="javascript" >
<!--
// alert("here");
var parentWindow = window.dialogArguments;
parentWindow.location.reload();
window.close();
// -->
</ script >
</ logic:equal >
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
< html:html lang ="true" >
< head >
< html:base target ="_self" />
< title > Add Form </ title >
< meta http-equiv ="pragma" content ="no-cache" >
< meta http-equiv ="cache-control" content ="no-cache" >
< meta http-equiv ="expires" content ="0" >
< meta http-equiv ="description" content ="cate edit" >
</ head >
< body >
< html:errors />
<!-- add begin -->
< html:form action ="/treeAction.do?method=update" method ="post" >
< html:hidden property ="parentid" />
< table border ="0" align ="center" >
< tr >
< td >< bean:message bundle ="ar1" key ="catename" /> : </ td >
< td >
< html:text property ="catename" />
</ td >
</ tr >
< tr ></ tr >
< tr >
< td align ="center" >< html:submit >< bean:message bundle ="ar1" key ="button.save" /></ html:submit ></ td >
< td align ="center" >< html:button property ="button" onclick ="javascript:window.close();" >< bean:message bundle ="ar1" key ="button.cancel" /></ html:button ></ td >
</ tr >
</ table >
</ html:form >
</ body >
</ html:html >
鏈鍚庡湪Action涓垽鏂柊澧炴槸鍚︽垚鍔?鎴愬姛鍒欙細
// 璁懼畾鍏沖洟紿楀彛鐨勫紑鍏?/span>
request.setAttribute( " close " , " OK " );
鍚﹀垯錛?/p>
// 璁懼畾鍏沖洟紿楀彛鐨勫紑鍏?/span>
request.setAttribute( " close " , " NO " );

]]>
主站蜘蛛池模板:
武功县|
大方县|
涿州市|
海南省|
鹤岗市|
玉溪市|
福鼎市|
怀仁县|
巩义市|
扶风县|
井陉县|
青田县|
尼玛县|
乐亭县|
竹北市|
大连市|
永吉县|
桐庐县|
洪泽县|
务川|
宁陕县|
台江县|
沂水县|
沅江市|
海林市|
安新县|
大化|
额敏县|
噶尔县|
永善县|
固阳县|
吴堡县|
枣强县|
泌阳县|
曲水县|
泗阳县|
田林县|
杭锦旗|
怀仁县|
天台县|
金门县|