?? csdn_struts tags (3) ----bean(2).htm
字號:
<SCRIPT>document.write("<img src=http://count.csdn.net/count/pageview1.asp?columnid=4&itemid=11 border=0 width=0 height=0>");</SCRIPT>
<B>
<SCRIPT language=JavaScript>
<!--
document.ns = navigator.appName == "Netscape"
tmpDate = new Date();
date = tmpDate.getDate();
month= tmpDate.getMonth() + 1 ;
if(document.ns)
{
year1=tmpDate.getYear()
year= year1.toString().substr(1,2);
}
else
year= tmpDate.getYear();
document.write(year);
document.write(".");
document.write(month);
document.write(".");
document.write(date);
// -->
</SCRIPT>
</B> </TD></TR>
<TR bgColor=#999999>
<TD colSpan=3 height=1></TD></TR></TBODY></TABLE>
<TABLE width=770 border=0>
<TBODY>
<TR>
<TD class=td1 vAlign=top align=middle width=150 bgColor=#fafafa><BR><!--廣告條開始//-->
<SCRIPT src="CSDN_Struts tags (3) ----Bean(2).files/sun.js"></SCRIPT>
<!--廣告條結束//--></TD>
<TD vAlign=top align=middle width=620><!--文章說明信息開始//-->
<TABLE cellSpacing=0 cellPadding=0 width=600 bgColor=#eeeeee border=0>
<TBODY>
<TR bgColor=#ffffff>
<TD align=middle width=50 height=10></TD>
<TD align=right><A href="http://www.csdn.net/">CSDN</A> - <A
href="http://www.csdn.net/develop/">文檔中心</A> - <FONT
color=#003399>Java</FONT> </TD></TR>
<TR>
<TD align=enter height=5></TD>
<TD align=middle width=500 td <></TD>
<TR>
color=#ffffff>標題</FONT></TD>
<TD><B> Struts tags (3)
----Bean(2)</B> cnynlf(翻譯)</TD></TR>
<TR>
<TD align=middle height=5></TD>
<TD align=middle width=500></TD></TR>
<TR>
<TD align=middle bgColor=#003399><FONT color=#ffffff>關鍵字</FONT></TD>
<TD width=500> Struts</TD></TR>
<TR>
<TD align=middle height=5></TD>
<TD align=middle width=500></TD></TR>
<TR>
<TD align=middle bgColor=#003399 height=10><FONT
color=#ffffff>出處</FONT></TD>
<TD height=10> <A
href="http://jakarta.apache.org/struts/userGuide/dev_bean.html">http://jakarta.apache.org/struts/userGuide/dev_bean.html</A></TD></TR>
<TR>
<TD align=middle height=10></TD>
<TD height=10></TD></TR></TBODY></TABLE><!--文章說明信息結束//-->
<TABLE width=600 border=0>
<TBODY>
<TR>
<TD align=left><!--內容開始//--><BR>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-SIZE: 16pt; mso-bidi-font-size: 10.5pt">Page<o:p></o:p></SPAN></B></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 3.9pt; TEXT-INDENT: 22pt"><SPAN lang=EN-US
style="FONT-SIZE: 11pt; mso-bidi-font-size: 10.5pt">Page</SPAN><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋體; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">標簽的作用是從頁面的上下文中獲取屬性,將其包裝為</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; mso-bidi-font-size: 10.5pt">Bean</SPAN><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋體; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,并通過一個腳本變量來訪問該</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; mso-bidi-font-size: 10.5pt">Bean</SPAN><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋體; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; mso-bidi-font-size: 10.5pt"><o:p></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 3.9pt; TEXT-INDENT: 22pt"><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋體; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">當該標簽中出現問題時(比如指定的</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; mso-bidi-font-size: 10.5pt">Page</SPAN><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋體; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">上下文屬性沒有找到),將會拋出一個請求期的異常</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; mso-bidi-font-size: 10.5pt"><o:p></o:p></SPAN></P>
style="MARGIN: 0cm 0cm 3.9pt; TEXT-INDENT: 22pt"><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋體; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">該標簽不可含有標簽體內容。</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; mso-bidi-font-size: 10.5pt"><o:p></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 3.9pt; TEXT-INDENT: 22pt"><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋體; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">該標簽有兩屬性。</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; mso-bidi-font-size: 10.5pt"><o:p></o:p></SPAN></P>
<TABLE class=MsoNormalTable
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; MARGIN: auto auto auto -2.25pt; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-table-layout-alt: fixed; mso-border-alt: thick-thin-large-gap gray 3.0pt; mso-padding-alt: 0cm 1.5pt 0cm 1.5pt"
cellSpacing=0 cellPadding=0 border=1>
<TBODY>
<TR style="mso-yfti-irow: 0">
<TD
style="BORDER-RIGHT: gray 3pt double; PADDING-RIGHT: 1.5pt; BORDER-TOP: gray 3pt double; PADDING-LEFT: 1.5pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: gray 3pt double; WIDTH: 62.2pt; PADDING-TOP: 0cm; BORDER-BOTTOM: gray 3pt double; BACKGROUND-COLOR: transparent; mso-border-alt: thick-thin-large-gap gray 3.0pt"
width=83>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan"
align=center><B style="mso-bidi-font-weight: normal"><SPAN
style="FONT-FAMILY: 宋體; mso-font-kerning: 0pt">屬性<SPAN
lang=EN-US><o:p></o:p></SPAN></SPAN></B></P></TD>
<TD
style="BORDER-RIGHT: gray 3pt double; PADDING-RIGHT: 1.5pt; BORDER-TOP: gray 3pt double; PADDING-LEFT: 1.5pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 341.9pt; PADDING-TOP: 0cm; BORDER-BOTTOM: gray 3pt double; BACKGROUND-COLOR: transparent; mso-border-alt: thick-thin-large-gap gray 3.0pt; mso-border-left-alt: thick-thin-large-gap gray 3.0pt"
width=456>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan"
align=center><B style="mso-bidi-font-weight: normal"><SPAN
style="FONT-FAMILY: 宋體; mso-font-kerning: 0pt">描述<SPAN
lang=EN-US><o:p></o:p></SPAN></SPAN></B></P></TD></TR>
<TR style="mso-yfti-irow: 1">
<TD
style="BORDER-RIGHT: gray 3pt double; PADDING-RIGHT: 1.5pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 1.5pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: gray 3pt double; WIDTH: 62.2pt; PADDING-TOP: 0cm; BORDER-BOTTOM: gray 3pt double; BACKGROUND-COLOR: transparent; mso-border-alt: thick-thin-large-gap gray 3.0pt; mso-border-top-alt: thick-thin-large-gap gray 3.0pt"
width=83>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan"
align=center><SPAN lang=EN-US
style="FONT-FAMILY: 宋體; mso-font-kerning: 0pt">id<o:p></o:p></SPAN></P></TD>
<TD
style="BORDER-RIGHT: gray 3pt double; PADDING-RIGHT: 1.5pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 1.5pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 341.9pt; PADDING-TOP: 0cm; BORDER-BOTTOM: gray 3pt double; BACKGROUND-COLOR: transparent; mso-border-alt: thick-thin-large-gap gray 3.0pt; mso-border-left-alt: thick-thin-large-gap gray 3.0pt; mso-border-top-alt: thick-thin-large-gap gray 3.0pt"
width=456>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan"
align=left><SPAN
style="FONT-FAMILY: 宋體; mso-font-kerning: 0pt">設定存儲屬性的<SPAN
lang=EN-US>bean的名字<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan"
align=left><SPAN lang=EN-US
style="FONT-FAMILY: 宋體; mso-font-kerning: 0pt">(必須)
<o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 2; mso-yfti-lastrow: yes">
<TD
style="BORDER-RIGHT: gray 3pt double; PADDING-RIGHT: 1.5pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 1.5pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: gray 3pt double; WIDTH: 62.2pt; PADDING-TOP: 0cm; BORDER-BOTTOM: gray 3pt double; BACKGROUND-COLOR: transparent; mso-border-alt: thick-thin-large-gap gray 3.0pt; mso-border-top-alt: thick-thin-large-gap gray 3.0pt"
width=83>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan"
align=center><SPAN lang=EN-US
style="FONT-FAMILY: 宋體; mso-font-kerning: 0pt">property<o:p></o:p></SPAN></P></TD>
<TD
style="BORDER-RIGHT: gray 3pt double; PADDING-RIGHT: 1.5pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 1.5pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 341.9pt; PADDING-TOP: 0cm; BORDER-BOTTOM: gray 3pt double; BACKGROUND-COLOR: transparent; mso-border-alt: thick-thin-large-gap gray 3.0pt; mso-border-left-alt: thick-thin-large-gap gray 3.0pt; mso-border-top-alt: thick-thin-large-gap gray 3.0pt"
width=456>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"
align=left><SPAN
style="FONT-FAMILY: 宋體; mso-font-kerning: 0pt">獲取的頁面上下文的屬性的名字,必須是下列屬性中的一個:</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">application,<o:p></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"
align=left><SPAN lang=EN-US
style="FONT-SIZE: 11pt; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt">config,
request, response, or session.<o:p></o:p></SPAN></P>
<P class=MsoNormal
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -