锘??xml version="1.0" encoding="utf-8" standalone="yes"?>91精品久久久久久久久久,精品欧美国产,精彩视频一区二区http://www.aygfsteel.com/dechon/category/5205.htmlzh-cnTue, 27 Feb 2007 12:33:46 GMTTue, 27 Feb 2007 12:33:46 GMT60鍒╃敤鍑芥暟computeURL( )瀹炵幇鍚屼竴FORM鐨勫鍔ㄤ綔鎻愪氦http://www.aygfsteel.com/dechon/archive/2005/11/24/21253.htmlTerenceTerenceThu, 24 Nov 2005 03:29:00 GMThttp://www.aygfsteel.com/dechon/archive/2005/11/24/21253.htmlhttp://www.aygfsteel.com/dechon/comments/21253.htmlhttp://www.aygfsteel.com/dechon/archive/2005/11/24/21253.html#Feedback2http://www.aygfsteel.com/dechon/comments/commentRss/21253.htmlhttp://www.aygfsteel.com/dechon/services/trackbacks/21253.html       computeURL( )鏄湪org.apache.struts.util.RequestUtils(Struts Ver1.1)涓巓rg.apache.struts.taglib.TagUtils(Struts Ver1.2)綾諱腑鐨勪竴涓嚱鏁?鐢ㄦ潵瑙f瀽鍩轟簬Forward,Action,閾炬帴,欏甸潰鍙傛暟鐨刄RL鍙互鐢ㄦ潵鍔ㄦ佹敼鍙橀〉闈腑Form瀵瑰簲鐨凙ction.Ver1.1涓湁浠ヤ笅涓ょ:
1.computeURL(javax.servlet.jsp.PageContext pageContext, java.lang.String forward, java.lang.String href, java.lang.String page, java.util.Map params, java.lang.String anchor, boolean redirect)
2.computeURL(javax.servlet.jsp.PageContext pageContext, java.lang.String forward, java.lang.String href, java.lang.String page, java.lang.String action, java.util.Map params, java.lang.String anchor, boolean redirect)
鍏朵腑絎竴涓槸  Deprecated.絎簩涓湪鏂扮増鏈腑寰椾互淇濈暀,鍙﹀榪樻彁渚涗簡鍙﹀涓縐嶉噸杞?
computeURL(javax.servlet.jsp.PageContext pageContext, java.lang.String forward, java.lang.String href, java.lang.String page, java.lang.String action, java.lang.String module, java.util.Map params, java.lang.String anchor, boolean redirect, boolean encodeSeparator) 
鍙傛暟璇存槑濡備笅:
Parameters:
pageContext - PageContext for the tag making this call
forward - Logical forward name for which to look up the context-relative URI (if specified)
href - URL to be utilized unmodified (if specified)
page - Module-relative page for which a URL should be created (if specified)
action - Logical action name for which to look up the context-relative URI (if specified)
params - Map of parameters to be dynamically included (if any)
anchor - Anchor to be dynamically included (if any)
redirect - Is this URL for a response.sendRedirect(

涓嬮潰浠嬬粛涓涓嬭緇嗙殑浣跨敤鏂規硶:
1.鍦↗SP欏甸潰涓鍏ュ搴旂殑鍖?
<%@ page import= "org.apache.struts.util.RequestUtils"%>
鎴?BR><%@ page import= "org.apache.struts.taglib.TagUtils"%>
2.鍒涘緩涓涓狫AVASCRIPT鍑芥暟:
<script language="JavaScript" type="text/javascript">
function search() {
 <%String searchUrl = RequestUtils.computeURL(
   pageContext,
   null,
   null,
   "/Search.do",
   null,
   null,
   null,
   false);
 %>
   
 document.form1.action = "<%=searchUrl%>";
 document.form1.submit();  
}
</script>
3.鍦↗SP欏甸潰涓粰瀵瑰簲鐨勮〃鍗曟寚瀹欼D浠ヤ究涓婇潰鐨勫嚱鏁拌繘琛岀‘瀹氭彁浜ょ殑鏄摢涓狥ORM(濡傛灉涓涓〉闈㈠湪瀛樺湪澶氫釜FORM鐨勮瘽):
<html:form styleId="form1" action="/aotherSearch">
.........
</html:form>
4.鍦ㄩ渶瑕佽Е鍙戞彁浜ゅ姩浣滅殑鍦版柟,璋冪敤2涓殑JAVASCRIPT鍑芥暟:
<html:button property="searchInfo" value="媯绱? onclick="search()" style="width:100px" />

瀵瑰簲鐨凙CTION涓嶧ORM鍦ㄩ厤緗枃浠朵腑瀹氫箟.榪欐牱,灝卞彲浠ュ姩鎬佹洿鏀笷ORM鐨凙CTION瀹炵幇涓涓狥ORM瀵瑰簲澶氫釜ACTION浜?



Terence 2005-11-24 11:29 鍙戣〃璇勮
]]>
Struts涓殑涓嬫媺鍒楄〃鏍囩鐨勪嬌鐢?/title><link>http://www.aygfsteel.com/dechon/archive/2005/11/24/21230.html</link><dc:creator>Terence</dc:creator><author>Terence</author><pubDate>Thu, 24 Nov 2005 02:21:00 GMT</pubDate><guid>http://www.aygfsteel.com/dechon/archive/2005/11/24/21230.html</guid><wfw:comment>http://www.aygfsteel.com/dechon/comments/21230.html</wfw:comment><comments>http://www.aygfsteel.com/dechon/archive/2005/11/24/21230.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.aygfsteel.com/dechon/comments/commentRss/21230.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/dechon/services/trackbacks/21230.html</trackback:ping><description><![CDATA[<P>欏甸潰涓粡甯哥敤鍒頒笅鎷夊垪琛?涓嬮潰鏄釜浜哄浜嶴TRUTS涓爣絳句嬌鐢ㄧ殑涓鐐規葷粨:<BR>STRUTS涓殑涓嬫媺閫夋嫨鍒楄〃鏍囩蹇呴』宓屽鍦?lt;html:form>鏍囩涓?鍖呮嫭:<BR><FONT color=#008000>1.<html:select><BR>2.<html:option><BR>3.<html:options><BR>4.<html:optionsCollection><BR></FONT><BR>浣跨敤鏃跺祵濂楀涓?<BR><FONT color=#008000><html:select property="ationForm.property"><BR>    <html:option>鎴?lt;html:options>鎴?lt;html:optionsCollection><BR></html:select><BR></FONT>鍏朵腑property涓篈ctionForm涓搴旂殑涓涓睘鎬?<BR><BR><FONT color=#0000ff>1.<html:option></FONT><BR><FONT color=#008000><html:option value="value">displayName</html:option><BR></FONT>鍏朵腑value涓哄疄闄呬嬌鐢ㄧ殑鍊?璧嬪煎埌ActionForm瀵瑰簲鐨勫睘鎬т腑) displayName欏甸潰涓樉紺虹殑淇℃伅.<BR><FONT color=#800080>渚?<html:option value=""></html:option>鏄劇ず涓涓┖鐧介夋嫨,鍊間負"".<BR></FONT><BR><FONT color=#0000ff>2..<html:options></FONT><FONT color=#008000><BR><html:options collection="collection" labelProperty="displayName" property="value"/><BR></FONT>鍏朵腑collection涓轟竴涓泦鍚?涓鑸槸涓狝rrayList,displayName涓哄墠鍙版樉紺虹殑鍚嶇О,value涓哄悗鍙板疄闄呬嬌鐢ㄧ殑鍊?<BR><FONT color=#800080>渚?<html:options collection="arrayList" labelProperty="name" property="id" /><BR></FONT><BR><FONT color=#0000ff>3..<html:optionsCollection></FONT><FONT color=#008000><BR><html:optionsCollection property="actionForm.property" label="displayName" value="value"/><BR></FONT>鍏朵腑property涓篈ctionForm涓殑涓涓睘鎬?涓轟竴涓泦鍚?displayName涓哄墠鍙版樉紺虹殑鍚嶇О,value涓哄悗鍙板疄闄呬嬌鐢ㄧ殑鍊?<BR><FONT color=#800080>渚?<html:optionsCollection property="listProperty" label="name" value="id" /><BR><BR></FONT><FONT color=#000000>琛ュ厖涓鐐?濡傛灉瑕佷粠 鏁版嵁搴撳幓鍙栨暟鎹紝涓鑸槸鍦?action 閲岃皟鐢?DAO 錛屾妸緇撴灉瀛樺叆涓涓狝rrayList浣滀負 request 鐨勪竴涓睘鎬т紶鍒伴〉闈笂錛?榪欐椂涓鑸敤 <html:options .../> 鏍囩.鍙﹀錛屽鏋滄暟鎹笉浠庢暟鎹簱鍘誨彇錛岃屾槸浠g爜鍥哄畾鐨勶紝鍒欎竴鑸妸榪欑鏀懼埌 ActionForm 閲岋紝浣滀負灞炴у湪欏甸潰涓婂彇錛岃繖鏃朵竴鑸敤 <html:optionsCollection ... /> .</FONT></P><img src ="http://www.aygfsteel.com/dechon/aggbug/21230.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/dechon/" target="_blank">Terence</a> 2005-11-24 10:21 <a href="http://www.aygfsteel.com/dechon/archive/2005/11/24/21230.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">丹东市</a>| <a href="http://" target="_blank">江安县</a>| <a href="http://" target="_blank">牙克石市</a>| <a href="http://" target="_blank">阿合奇县</a>| <a href="http://" target="_blank">调兵山市</a>| <a href="http://" target="_blank">广宁县</a>| <a href="http://" target="_blank">奉贤区</a>| <a href="http://" target="_blank">棋牌</a>| <a href="http://" target="_blank">余姚市</a>| <a href="http://" target="_blank">五寨县</a>| <a href="http://" target="_blank">乐昌市</a>| <a href="http://" target="_blank">青浦区</a>| <a href="http://" target="_blank">松江区</a>| <a href="http://" target="_blank">仁布县</a>| <a href="http://" target="_blank">资溪县</a>| <a href="http://" target="_blank">江达县</a>| <a href="http://" target="_blank">广丰县</a>| <a href="http://" target="_blank">新龙县</a>| <a href="http://" target="_blank">甘孜县</a>| <a href="http://" target="_blank">南陵县</a>| <a href="http://" target="_blank">班玛县</a>| <a href="http://" target="_blank">武川县</a>| <a href="http://" target="_blank">台北市</a>| <a href="http://" target="_blank">宝坻区</a>| <a href="http://" target="_blank">尉氏县</a>| <a href="http://" target="_blank">崇阳县</a>| <a href="http://" target="_blank">手游</a>| <a href="http://" target="_blank">呼伦贝尔市</a>| <a href="http://" target="_blank">宜章县</a>| <a href="http://" target="_blank">共和县</a>| <a href="http://" target="_blank">陕西省</a>| <a href="http://" target="_blank">曲麻莱县</a>| <a href="http://" target="_blank">苗栗市</a>| <a href="http://" target="_blank">依安县</a>| <a href="http://" target="_blank">大洼县</a>| <a href="http://" target="_blank">扎赉特旗</a>| <a href="http://" target="_blank">凌源市</a>| <a href="http://" target="_blank">缙云县</a>| <a href="http://" target="_blank">麦盖提县</a>| <a href="http://" target="_blank">云林县</a>| <a href="http://" target="_blank">巴南区</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>