锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚州av乱码久久精品蜜桃,jizz日韩,国产乱码一区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>