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

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

📁 MVC结构中struts的详细介绍
💻 MHT
📖 第 1 页 / 共 5 页
字号:
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> =
contentType</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=3D</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">text/html;=20
charset=3Dutf-8</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> =
pageEncoding</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=3D</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">utf-8</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #ffff00">%&gt;</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR></SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #ffff00">&lt;%</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">@ taglib =
prefix</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=3D</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">s</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> uri</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=3D</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: =
#f5f5f5">/struts-tags</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #ffff00">%&gt;</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR><BR></SPAN><SPAN=20
style=3D"COLOR: #0000ff">&lt;!</SPAN><SPAN style=3D"COLOR: =
#ff00ff">DOCTYPE html=20
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"=20
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</SPAN><SPAN=20
style=3D"COLOR: #0000ff">&gt;</SPAN><SPAN style=3D"COLOR: =
#000000"><BR></SPAN><SPAN=20
style=3D"COLOR: #0000ff">&lt;</SPAN><SPAN style=3D"COLOR: #800000">html =
</SPAN><SPAN=20
style=3D"COLOR: #ff0000">xmlns</SPAN><SPAN=20
style=3D"COLOR: #0000ff">=3D"http://www.w3.org/1999/xhtml"</SPAN><SPAN=20
style=3D"COLOR: #0000ff">&gt;</SPAN><SPAN style=3D"COLOR: =
#000000"><BR></SPAN><SPAN=20
style=3D"COLOR: #0000ff">&lt;</SPAN><SPAN style=3D"COLOR: =
#800000">head</SPAN><SPAN=20
style=3D"COLOR: #0000ff">&gt;</SPAN><SPAN style=3D"COLOR: =
#000000"><BR>&nbsp; &nbsp;=20
</SPAN><SPAN style=3D"COLOR: #0000ff">&lt;</SPAN><SPAN=20
style=3D"COLOR: #800000">title</SPAN><SPAN style=3D"COLOR: =
#0000ff">&gt;</SPAN><SPAN=20
style=3D"COLOR: #000000">Struts 2 Cool Tags - </SPAN><SPAN=20
style=3D"COLOR: #ff0000">&amp;lt;</SPAN><SPAN=20
style=3D"COLOR: #000000">s:checkboxlist/ </SPAN><SPAN=20
style=3D"COLOR: #ff0000">&amp;gt;</SPAN><SPAN=20
style=3D"COLOR: #0000ff">&lt;/</SPAN><SPAN=20
style=3D"COLOR: #800000">title</SPAN><SPAN style=3D"COLOR: =
#0000ff">&gt;</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR>&nbsp; &nbsp; </SPAN><SPAN=20
style=3D"COLOR: #0000ff">&lt;</SPAN><SPAN style=3D"COLOR: =
#800000">s:head=20
</SPAN><SPAN style=3D"COLOR: #0000ff">/&gt;</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR></SPAN><SPAN style=3D"COLOR: =
#0000ff">&lt;/</SPAN><SPAN=20
style=3D"COLOR: #800000">head</SPAN><SPAN style=3D"COLOR: =
#0000ff">&gt;</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR></SPAN><SPAN style=3D"COLOR: =
#0000ff">&lt;</SPAN><SPAN=20
style=3D"COLOR: #800000">body</SPAN><SPAN style=3D"COLOR: =
#0000ff">&gt;</SPAN><SPAN=20
style=3D"COLOR: #000000"> &nbsp; &nbsp;<BR>&nbsp; &nbsp; </SPAN><SPAN=20
style=3D"COLOR: #0000ff">&lt;</SPAN><SPAN style=3D"COLOR: =
#800000">h2</SPAN><SPAN=20
style=3D"COLOR: #0000ff">&gt;</SPAN><SPAN=20
style=3D"COLOR: #ff0000">&amp;lt;</SPAN><SPAN=20
style=3D"COLOR: #000000">s:checkboxlist/</SPAN><SPAN=20
style=3D"COLOR: #ff0000">&amp;gt;</SPAN><SPAN=20
style=3D"COLOR: #0000ff">&lt;/</SPAN><SPAN style=3D"COLOR: =
#800000">h2</SPAN><SPAN=20
style=3D"COLOR: #0000ff">&gt;</SPAN><SPAN style=3D"COLOR: =
#000000"><BR>&nbsp; &nbsp;=20
</SPAN><SPAN style=3D"COLOR: #0000ff">&lt;</SPAN><SPAN=20
style=3D"COLOR: #800000">s:form </SPAN><SPAN=20
style=3D"COLOR: #ff0000">action</SPAN><SPAN=20
style=3D"COLOR: #0000ff">=3D"Store"</SPAN><SPAN style=3D"COLOR: =
#ff0000"> </SPAN><SPAN=20
style=3D"COLOR: #0000ff">&gt;</SPAN><SPAN style=3D"COLOR: =
#000000"><BR>&nbsp; &nbsp;=20
&nbsp; &nbsp; </SPAN><SPAN style=3D"COLOR: #0000ff">&lt;</SPAN><SPAN=20
style=3D"COLOR: #800000">s:checkboxlist </SPAN><SPAN=20
style=3D"COLOR: #ff0000">name</SPAN><SPAN=20
style=3D"COLOR: #0000ff">=3D"skills1"</SPAN><SPAN=20
style=3D"COLOR: #ff0000">&nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label</SPAN><SPAN=20
style=3D"COLOR: #0000ff">=3D"Skills 1"</SPAN><SPAN=20
style=3D"COLOR: #ff0000">&nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list</SPAN><SPAN=20
style=3D"COLOR: #0000ff">=3D"{ 'Java', '.Net', 'RoR', 'PHP' =
}"</SPAN><SPAN=20
style=3D"COLOR: #ff0000">&nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value</SPAN><SPAN=20
style=3D"COLOR: #0000ff">=3D"{ 'Java', '.Net' }"</SPAN><SPAN =
style=3D"COLOR: #ff0000">=20
</SPAN><SPAN style=3D"COLOR: #0000ff">/&gt;</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN=20
style=3D"COLOR: #0000ff">&lt;</SPAN><SPAN style=3D"COLOR: =
#800000">s:checkboxlist=20
</SPAN><SPAN style=3D"COLOR: #ff0000">name</SPAN><SPAN=20
style=3D"COLOR: #0000ff">=3D"skills2"</SPAN><SPAN=20
style=3D"COLOR: #ff0000">&nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label</SPAN><SPAN=20
style=3D"COLOR: #0000ff">=3D"Skills 2"</SPAN><SPAN=20
style=3D"COLOR: #ff0000">&nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list</SPAN><SPAN=20
style=3D"COLOR: #0000ff">=3D"#{ 1:'Java', 2: '.Net', 3: 'RoR', 4: 'PHP'=20
}"</SPAN><SPAN style=3D"COLOR: #ff0000">&nbsp;<BR>&nbsp; &nbsp; &nbsp; =
&nbsp;=20
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
listKey</SPAN><SPAN=20
style=3D"COLOR: #0000ff">=3D"key"</SPAN><SPAN=20
style=3D"COLOR: #ff0000">&nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; listValue</SPAN><SPAN=20
style=3D"COLOR: #0000ff">=3D"value"</SPAN><SPAN=20
style=3D"COLOR: #ff0000">&nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value</SPAN><SPAN=20
style=3D"COLOR: #0000ff">=3D"{ 1, 2, 3 }"</SPAN><SPAN=20
style=3D"COLOR: #0000ff">/&gt;</SPAN><SPAN style=3D"COLOR: =
#000000"><BR>&nbsp;=20
&nbsp; </SPAN><SPAN style=3D"COLOR: #0000ff">&lt;/</SPAN><SPAN=20
style=3D"COLOR: #800000">s:form</SPAN><SPAN=20
style=3D"COLOR: #0000ff">&gt;</SPAN><SPAN style=3D"COLOR: =
#000000"><BR></SPAN><SPAN=20
style=3D"COLOR: #0000ff">&lt;/</SPAN><SPAN style=3D"COLOR: =
#800000">body</SPAN><SPAN=20
style=3D"COLOR: #0000ff">&gt;</SPAN><SPAN style=3D"COLOR: =
#000000"><BR></SPAN><SPAN=20
style=3D"COLOR: #0000ff">&lt;/</SPAN><SPAN style=3D"COLOR: =
#800000">html</SPAN><SPAN=20
style=3D"COLOR: #0000ff">&gt;</SPAN></DIV><SPAN=20
style=3D"FONT-SIZE: smaller; FONT-STYLE: italic">=E6=B8=85=E5=8D=951=20
WebContent/checkboxlist.jsp</SPAN>=20
<P>=E5=88=86=E5=B8=83=E8=BF=90=E8=A1=8C=E5=BA=94=E7=94=A8=E7=A8=8B=E5=BA=8F=
=EF=BC=8C=E5=9C=A8=E6=B5=8F=E8=A7=88=E5=99=A8=E4=B8=AD=E9=94=AE=E5=85=A5=EF=
=BC=9A<A=20
href=3D"http://localhost:8080/Struts2_CoolTags/checkboxlist.jsp">http://l=
ocalhost:8080/Struts2_CoolTags/checkboxlist.jsp</A>=EF=BC=8C=E5=87=BA=E7=8E=
=B0=E5=A6=82=E4=B8=8B=E5=9B=BE=E6=89=80=E7=A4=BA=E9=A1=B5=E9=9D=A2=EF=BC=9A=
</P>
<P><IMG alt=3Dcheckboxlist.jsp=E9=A1=B5=E9=9D=A2=20
src=3D"http://www.blogjava.net/images/blogjava_net/max/22548/r_checkboxli=
st.gif"><BR><SPAN=20
style=3D"FONT-SIZE: smaller; FONT-STYLE: italic">=E6=B8=85=E5=8D=952 =
checkboxlist.jsp=E9=A1=B5=E9=9D=A2</SPAN></P>
<H2>2=E3=80=81&lt;s:doubleselect /&gt;</H2>
<P>=E5=A4=A7=E5=AE=B6=E7=9C=8BStruts =
2=E7=9A=84showcase=E7=9A=84=E4=BE=8B=E5=AD=90=EF=BC=8C&lt;s:doubleselect =
/&gt;=E7=9A=84=E7=94=A8=E6=B3=95=E5=A6=82=E4=B8=8B=E6=89=80=E7=A4=BA=EF=BC=
=9A</P>
<DIV=20
style=3D"BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; =
BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; =
PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; =
WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px =
solid; BACKGROUND-COLOR: #eeeeee"><SPAN=20
style=3D"COLOR: #000000">&nbsp; &nbsp; </SPAN><SPAN=20
style=3D"COLOR: #0000ff">&lt;</SPAN><SPAN=20
style=3D"COLOR: #800000">s:doubleselect<BR>&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
&nbsp; </SPAN><SPAN style=3D"COLOR: #ff0000">tooltip</SPAN><SPAN=20
style=3D"COLOR: #0000ff">=3D"Choose Your State"</SPAN><SPAN=20
style=3D"COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
label</SPAN><SPAN style=3D"COLOR: #0000ff">=3D"State"</SPAN><SPAN=20
style=3D"COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
name</SPAN><SPAN style=3D"COLOR: #0000ff">=3D"region"</SPAN><SPAN=20
style=3D"COLOR: #ff0000"> list</SPAN><SPAN style=3D"COLOR: =
#0000ff">=3D"{'North',=20
'South'}"</SPAN><SPAN style=3D"COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; =
&nbsp;=20
&nbsp; &nbsp; value</SPAN><SPAN style=3D"COLOR: =
#0000ff">=3D"'South'"</SPAN><SPAN=20
style=3D"COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
doubleValue</SPAN><SPAN style=3D"COLOR: =
#0000ff">=3D"'Florida'"</SPAN><SPAN=20
style=3D"COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
doubleList</SPAN><SPAN style=3D"COLOR: #0000ff">=3D"top =3D=3D 'North' ? =
{'Oregon',=20
'Washington'} : {'Texas', 'Florida'}"</SPAN><SPAN=20
style=3D"COLOR: #ff0000">&nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
doubleName</SPAN><SPAN style=3D"COLOR: #0000ff">=3D"state"</SPAN><SPAN=20
style=3D"COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
headerKey</SPAN><SPAN style=3D"COLOR: #0000ff">=3D"-1"</SPAN><SPAN=20
style=3D"COLOR: #ff0000"><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
headerValue</SPAN><SPAN style=3D"COLOR: #0000ff">=3D"---------- Please =
Select=20
----------"</SPAN><SPAN style=3D"COLOR: #ff0000"><BR>&nbsp; &nbsp; =
&nbsp; &nbsp;=20
&nbsp; &nbsp; emptyOption</SPAN><SPAN style=3D"COLOR: =
#0000ff">=3D"true"</SPAN><SPAN=20
style=3D"COLOR: #ff0000"> </SPAN><SPAN=20
style=3D"COLOR: #0000ff">/&gt;</SPAN></DIV><SPAN=20
style=3D"FONT-SIZE: smaller; FONT-STYLE: italic">=E6=B8=85=E5=8D=953 =
Showcase=E4=B8=AD&lt;s:doubleselect=20
/&gt;</SPAN>=20
<P>=E5=BE=88=E5=A4=9A=E6=9C=8B=E5=8F=8B=E9=97=AE=EF=BC=9A=E2=80=9C=E4=B8=8A=
=E9=9D=A2=E7=9A=84=E2=80=98list=E2=80=99=E5=B1=9E=E6=80=A7=E5=8F=AA=E6=9C=
=89=E4=B8=A4=E4=B8=AA=E5=80=BC=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=88=91=E6=9C=89=
=E4=B8=89=E4=B8=AA=E6=88=96=E6=9B=B4=E5=A4=9A=E7=9A=84=E5=80=BC=EF=BC=8C=E2=
=80=98doublelist=E2=80=99=E5=B1=9E=E6=80=A7=E5=BA=94=E8=AF=A5=E5=A6=82=E4=
=BD=95=E8=AE=BE=E5=AE=9A=E5=91=A2=EF=BC=9F=E2=80=9D</P>
<P>=E6=88=91=E5=BB=BA=E8=AE=AE=E7=9A=84=E5=81=9A=E6=B3=95=E6=98=AF=E5=85=88=
=E5=AE=9A=E4=B9=89=E4=B8=80=E4=B8=AAMap=E7=B1=BB=E5=9E=8B=E7=9A=84=E5=AF=B9=
=E8=B1=A1=EF=BC=8C=E9=94=AE=E4=B8=BA=E2=80=9Clist=E2=80=9D=E7=9A=84=E9=9B=
=86=E5=90=88=EF=BC=8C=E5=80=BC=E5=88=99=E4=B8=BA=E2=80=9CdoubleList=E2=80=
=9D=E7=9A=84=E9=9B=86=E5=90=88=EF=BC=8C=E7=84=B6=E5=90=8E=E2=80=9CdoubleL=
ist=E2=80=9D=E7=9A=84OGNL=E5=86=99=E6=88=90=E2=80=9C#myMap[top]=E2=80=9D=EF=
=BC=8C=E5=A6=82=E4=BB=A5=E4=B8=8B=E4=BB=A3=E7=A0=81=E6=89=80=E7=A4=BA=EF=BC=
=9A</P>
<DIV=20
style=3D"BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; =
BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; =
PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; =
WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px =
solid; BACKGROUND-COLOR: #eeeeee"><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #ffff00">&lt;%</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">@ page =
language</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=3D</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">java</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> =
contentType</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=3D</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">text/html;=20
charset=3Dutf-8</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> =
pageEncoding</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=3D</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">utf-8</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </SPAN><SPAN=20
style=3D"COLOR: #000000; BACKGROUND-COLOR: #ffff00">%&gt;</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR></SPAN><SPAN=20

⌨️ 快捷键说明

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