⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 strus 2的新表单标志的使用 - max on java - blogjava.htm

📁 struts2标签的详细解释说明教程
💻 HTM
📖 第 1 页 / 共 5 页
字号:
style="COLOR: #800000">s:updownselect<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; </SPAN><SPAN style="COLOR: #ff0000">label </SPAN><SPAN 
style="COLOR: #0000ff">= "Favourite Countries"</SPAN><SPAN 
style="COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
list</SPAN><SPAN style="COLOR: #0000ff">="#{'england':'England', 
'america':'America', 'germany':'Germany'}"</SPAN><SPAN 
style="COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
name</SPAN><SPAN 
style="COLOR: #0000ff">="prioritisedFavouriteCountries"</SPAN><SPAN 
style="COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
headerKey</SPAN><SPAN style="COLOR: #0000ff">="-1"</SPAN><SPAN 
style="COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
headerValue</SPAN><SPAN style="COLOR: #0000ff">="--- Please Order Them 
Accordingly ---"</SPAN><SPAN style="COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; emptyOption</SPAN><SPAN 
style="COLOR: #0000ff">="true"</SPAN><SPAN style="COLOR: #ff0000"> </SPAN><SPAN 
style="COLOR: #0000ff">/&gt;</SPAN><SPAN style="COLOR: #000000"><BR>&nbsp; 
&nbsp; &nbsp; &nbsp; </SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">s:optiontransferselect &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN 
style="COLOR: #ff0000">label</SPAN><SPAN style="COLOR: #0000ff">="Favourite 
Cartoons Characters"</SPAN><SPAN style="COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; name</SPAN><SPAN 
style="COLOR: #0000ff">="leftSideCartoonCharacters"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
leftTitle</SPAN><SPAN style="COLOR: #0000ff">="Left Title"</SPAN><SPAN 
style="COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
rightTitle</SPAN><SPAN style="COLOR: #0000ff">="Right Title"</SPAN><SPAN 
style="COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
list</SPAN><SPAN style="COLOR: #0000ff">="{'Popeye', 'He-Man', 
'Spiderman'}"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;<BR>&nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; multiple</SPAN><SPAN 
style="COLOR: #0000ff">="true"</SPAN><SPAN style="COLOR: #ff0000"><BR>&nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; headerKey</SPAN><SPAN 
style="COLOR: #0000ff">="headerKey"</SPAN><SPAN 
style="COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
headerValue</SPAN><SPAN style="COLOR: #0000ff">="--- Please Select 
---"</SPAN><SPAN style="COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; emptyOption</SPAN><SPAN style="COLOR: #0000ff">="true"</SPAN><SPAN 
style="COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
doubleList</SPAN><SPAN style="COLOR: #0000ff">="{'Superman', 'Mickey Mouse', 
'Donald Duck'}"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;<BR>&nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; doubleName</SPAN><SPAN 
style="COLOR: #0000ff">="rightSideCartoonCharacters"</SPAN><SPAN 
style="COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
doubleHeaderKey</SPAN><SPAN 
style="COLOR: #0000ff">="doubleHeaderKey"</SPAN><SPAN 
style="COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
doubleHeaderValue</SPAN><SPAN style="COLOR: #0000ff">="--- Please Select 
---"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; doubleEmptyOption</SPAN><SPAN 
style="COLOR: #0000ff">="true"</SPAN><SPAN style="COLOR: #ff0000"><BR>&nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; doubleMultiple</SPAN><SPAN 
style="COLOR: #0000ff">="true"</SPAN><SPAN style="COLOR: #ff0000"> </SPAN><SPAN 
style="COLOR: #0000ff">/&gt;</SPAN><SPAN style="COLOR: #000000"><BR>&nbsp; 
&nbsp; </SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">s:form</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">body</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">html</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN></DIV><SPAN 
style="FONT-SIZE: smaller; FONT-STYLE: italic">清单12 
WebContent\others.jsp页面</SPAN> 
<P>发布运行应用程序,在浏览器中键入:<A 
href="http://localhost:8080/Struts2_CoolTags/others.jsp">http://localhost:8080/Struts2_CoolTags/others.jsp</A>,出现如下图所示页面:</P>
<P><A 
href="http://www.blogjava.net/images/blogjava_net/max/22548/o_others.gif"><IMG 
alt=点击查看大图 
src="Strus 2的新表单标志的使用 - Max On Java - BlogJava.files/r_others.gif"></A><BR><SPAN 
style="FONT-SIZE: smaller; FONT-STYLE: italic">清单13 其它表单标志页面</SPAN></P>
<H2>总结</H2>
<P>Struts 2在标志上的确比Struts 1.x丰富了许多,同时模板机制也给程序员带来不少方便(如果你不太喜欢个性化的风格)。另外,Struts 
2还有一些AJAX(如<A title=autocompleter 
href="http://www.blogjava.net/max/admin/autocompleter.html">&lt;s: autocompleter 
/&gt;</A>等)的标志和非表单的UI标志(如<A href="http://cwiki.apache.org/WW/tree.html">&lt;s: 
tree /&gt;</A>等),我会在以后的文章中讲述其使用。</P>
<DIV class=postDesc>posted on 2007-05-18 19:34 <A 
href="http://www.blogjava.net/max/">Max</A> 阅读(4280) <A 
href="http://www.blogjava.net/max/archive/2007/05/18/118442.html#Post">评论(51)</A> 
&nbsp;<A 
href="http://www.blogjava.net/max/admin/EditPosts.aspx?postid=118442">编辑</A>&nbsp;<A 
href="http://www.blogjava.net/max/AddToFavorite.aspx?id=118442">收藏</A> <A 
href="http://www.blogjava.net/max/services/trackbacks/118442.aspx">引用</A> 所属分类: 
<A href="http://www.blogjava.net/max/category/16130.html">Struts 2.0系列</A> 
</DIV></DIV><IMG height=1 
src="Strus 2的新表单标志的使用 - Max On Java - BlogJava.files/118442.jpg" width=1> <!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description
rdf:about="http://www.blogjava.net/max/archive/2007/05/18/118442.html"
dc:identifier="http://www.blogjava.net/max/archive/2007/05/18/118442.html"
dc:title="Strus 2的新表单标志的使用"
trackback:ping="http://www.blogjava.net/max/services/trackbacks/118442.aspx" />
</rdf:RDF>
-->
<SCRIPT type=text/javascript>
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('AjaxHolder$scriptmanager1', document.getElementById('Form1'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tAjaxHolder$UpdatePanel1'], [], [], 90);
//]]>
</SCRIPT>

<DIV id=AjaxHolder_UpdatePanel1><A 
name=pagedcomment></A><!--done--><BR><B>评论:</B> 
<DIV class=feedbackNoItems></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A title="permalink: re: Strus 2的新表单标志的使用" 
href="http://www.blogjava.net/max/archive/2007/05/18/118442.html#118496">#</A>&nbsp;<A 
name=118496></A>re: Strus 2的新表单标志的使用 2007-05-19 08:26 | <A 
id=AjaxHolder_Comments_CommentList_ctl00_NameLink target=_blank>ec</A><BR>
<DIV align=left>好,支持,一会儿再尝试一下,哈哈~~&nbsp;&nbsp;<A 
onclick='return SetReplyAuhor("ec")' 
href="http://www.blogjava.net/max/archive/2007/05/18/118442.html#post">回复</A>&nbsp;&nbsp;<A 
title=查看该作者发表过的评论 href="http://www.blogjava.net/comment?author=ec" 
target=_blank>更多评论</A><BR><A id=AjaxHolder_Comments_CommentList_ctl00_DeleteLink 
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl00$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=AjaxHolder_Comments_CommentList_ctl00_EditLink></A></DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A title="permalink: re: Strus 2的新表单标志的使用" 
href="http://www.blogjava.net/max/archive/2007/05/18/118442.html#118524">#</A>&nbsp;<A 
name=118524></A>re: Strus 2的新表单标志的使用 2007-05-19 11:44 | <A 
id=AjaxHolder_Comments_CommentList_ctl01_NameLink target=_blank>zy</A><BR>
<DIV align=left>您的文章很好,很新鲜。&nbsp;&nbsp;<A onclick='return SetReplyAuhor("zy")' 
href="http://www.blogjava.net/max/archive/2007/05/18/118442.html#post">回复</A>&nbsp;&nbsp;<A 
title=查看该作者发表过的评论 href="http://www.blogjava.net/comment?author=zy" 
target=_blank>更多评论</A><BR><A id=AjaxHolder_Comments_CommentList_ctl01_DeleteLink 
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl01$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=AjaxHolder_Comments_CommentList_ctl01_EditLink></A></DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A title="permalink: re: Strus 2的新表单标志的使用" 
href="http://www.blogjava.net/max/archive/2007/05/18/118442.html#118603">#</A>&nbsp;<A 
name=118603></A>re: Strus 2的新表单标志的使用 2007-05-19 22:23 | <A 
id=AjaxHolder_Comments_CommentList_ctl02_NameLink 
href="http://www.blogjava.net/max/" target=_blank>Max</A><BR>
<DIV align=left>@ec <BR>@zy <BR>谢谢大家的支持:-)&nbsp;&nbsp;<A 
onclick='return SetReplyAuhor("Max")' 
href="http://www.blogjava.net/max/archive/2007/05/18/118442.html#post">回复</A>&nbsp;&nbsp;<A 
title=查看该作者发表过的评论 href="http://www.blogjava.net/comment?author=Max" 
target=_blank>更多评论</A><BR><A id=AjaxHolder_Comments_CommentList_ctl02_DeleteLink 
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl02$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=AjaxHolder_Comments_CommentList_ctl02_EditLink></A></DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A title="permalink: mailreader实例有点问题[未登录]" 
href="http://www.blogjava.net/max/archive/2007/05/18/118442.html#118679">#</A>&nbsp;<A 
name=118679></A>mailreader实例有点问题[未登录] 2007-05-20 13:11 | <A 
id=AjaxHolder_Comments_CommentList_ctl03_NameLink target=_blank>Jeff</A><BR>
<DIV align=left>Max 你在struts的造诣,我实在佩服。看到你的大作,我获益匪浅。<BR><BR>我下载了struts 
2.0.6,部署并运行其中的范例,发现MailReader的这个实例,有个bug,不能正常显示图片。如在主页中的图片struts-power.gif,就不能正常显示。<BR>请问:这是什么原因,应如何解决。<BR><BR>Max 
,你如果能在百忙中,抽空帮忙解决,这个问题,就实在太感谢了。&nbsp;&nbsp;<A 
onclick='return SetReplyAuhor("Jeff")' 
href="http://www.blogjava.net/max/archive/2007/05/18/118442.html#post">回复</A>&nbsp;&nbsp;<A 
title=查看该作者发表过的评论 href="http://www.blogjava.net/comment?author=Jeff" 
target=_blank>更多评论</A><BR><A id=AjaxHolder_Comments_CommentList_ctl03_DeleteLink 
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl03$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=AjaxHolder_Comments_CommentList_ctl03_EditLink></A></DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A title="permalink: re: Strus 2的新表单标志的使用[未登录]" 
href="http://www.blogjava.net/max/archive/2007/05/18/118442.html#118941">#</A>&nbsp;<A 
name=118941></A>re: Strus 2的新表单标志的使用[未登录] 2007-05-21 17:29 | <A 
id=AjaxHolder_Comments_CommentList_ctl04_NameLink 
href="http://struts2ä¹±ç&nbsp;/" target=_blank>javaman</A><BR>
<DIV align=left>真是太好了,我正想问你datetimepicker的用法呢,非常感谢!~&nbsp;&nbsp;<A 
onclick='return SetReplyAuhor("javaman")' 
href="http://www.blogjava.net/max/archive/2007/05/18/118442.html#post">回复</A>&nbsp;&nbsp;<A 
title=查看该作者发表过的评论 href="http://www.blogjava.net/comment?author=javaman" 
target=_blank>更多评论</A><BR><A id=AjaxHolder_Comments_CommentList_ctl04_DeleteLink 
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl04$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=AjaxHolder_Comments_CommentList_ctl04_EditLink></A></DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A title="permalink: re: Strus 2的新表单标志的使用[未登录]" 
href="http://www.blogjava.net/max/archive/2007/05/18/118442.html#118942">#</A>&nbsp;<A 
name=118942></A>re: Strus 2的新表单标志的使用[未登录] 2007-05-21 17:31 | <A 
id=AjaxHolder_Comments_CommentList_ctl05_NameLink 
href="http://struts2%20datetimepicker/" target=_blank>javaman</A><BR>
<DIV align=left>小弟最近在学struts2 在datetimepicker 遇到一个问题? <BR>class: <BR><BR>public 
class myclass1 extends ActionSupport{ <BR>private Date birthday; <BR><BR>public 
Date getBirthday() { <BR>return birthday; <BR>} <BR><BR>public void 
setBirthday(Date birthday) { <BR>this.birthday= birthday; <BR>} <BR><BR>public 
String execute(){ <BR>return SUCCESS; <BR>} <BR><BR>} <BR><BR><BR><BR>index.jsp: 
<BR>&lt;s:form action="myaction1"&gt; <BR>&lt;s:datetimepicker name="birthday" 
label="生日"/&gt;&lt;/&lt;br&gt; <BR>&lt;s:submit/&gt; <BR>&lt;/s:form&gt; 
<BR><BR><BR>问题:在index.jsp页面上始终不能显示时间的选择框,请问是怎么回事呢?? <BR>&nbsp;&nbsp;<A 
onclick='return SetReplyAuhor("javaman")' 
href=

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -