?? csdn_文檔中心_struts快速學習指南1(內(nèi)部培訓(xùn)教材)-大部分素材來自于《programming jakarta struts》一書.htm
字號:
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快速學習指南1(內(nèi)部培訓(xùn)教材)-大部分素材來自于《Programming Jakarta Struts》一書.files/sun.js"></SCRIPT>
</TD>
<TD 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=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><B> Struts快速學習指南1(內(nèi)部培訓(xùn)教材)-大部分素材來自于《Programming
Jakarta Struts》一書</B> lzasp800(原作) </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>關(guān)鍵字</FONT></TD>
<TD width=500> Struts MVC</TD></TR>
<TR>
<TD align=middle height=5></TD>
<TD align=middle width=500></TD></TR></TBODY></TABLE><!--文章說明信息結(jié)束//-->
<TABLE width=600 border=0>
<TBODY>
<TR>
<TD align=left><BR>
<H1 style="MARGIN: 6pt 0cm 3pt; TEXT-INDENT: 0cm"><A
name=_Toc69400226></A><A name=_Toc69320843><SPAN
style="mso-bookmark: _Toc69400226"><SPAN lang=EN-US
style="mso-bidi-font-family: 宋體"><SPAN
style="mso-list: Ignore"><FONT face=宋體 size=3>1.</FONT><SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=宋體
size=3>Struts簡介</FONT></SPAN></SPAN></A></H1>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; LINE-HEIGHT: normal; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-char-indent-count: 2.0"><SPAN
lang=EN-GB
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB">Struts
</SPAN><SPAN
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; mso-ansi-language: EN-GB; mso-ascii-font-family: 'Times New Roman'"><FONT
face=宋體>是一個技術(shù)框架,由</FONT></SPAN><SPAN lang=EN-GB
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB">Craig
R. McClanahan</SPAN><SPAN
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; mso-ansi-language: EN-GB; mso-ascii-font-family: 'Times New Roman'"><FONT
face=宋體>編寫,并且在</FONT></SPAN><SPAN lang=EN-GB
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB">2000</SPAN><SPAN
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; mso-ansi-language: EN-GB; mso-ascii-font-family: 'Times New Roman'"><FONT
face=宋體>年的時候捐獻給了</FONT></SPAN><SPAN lang=EN-GB
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB">ASF</SPAN><SPAN
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; mso-ansi-language: EN-GB; mso-ascii-font-family: 'Times New Roman'"><FONT
face=宋體>,目前,有很多組織和個人參與</FONT></SPAN><SPAN lang=EN-GB
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB">Struts</SPAN><SPAN
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; mso-ansi-language: EN-GB; mso-ascii-font-family: 'Times New Roman'"><FONT
face=宋體>框架的開發(fā),使得</FONT></SPAN><SPAN lang=EN-GB
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB">Struts</SPAN><SPAN
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; mso-ansi-language: EN-GB; mso-ascii-font-family: 'Times New Roman'"><FONT
face=宋體>保持高速成長,同時,利用</FONT></SPAN><SPAN lang=EN-GB
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB">Struts</SPAN><SPAN
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; mso-ansi-language: EN-GB; mso-ascii-font-family: 'Times New Roman'"><FONT
face=宋體>開發(fā)的應(yīng)用越來越多,使其成為</FONT></SPAN><SPAN lang=EN-GB
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB">web</SPAN><SPAN
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; mso-ansi-language: EN-GB; mso-ascii-font-family: 'Times New Roman'"><FONT
face=宋體>應(yīng)用</FONT></SPAN><SPAN lang=EN-GB
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB">MVC</SPAN><SPAN
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; mso-ansi-language: EN-GB; mso-ascii-font-family: 'Times New Roman'"><FONT
face=宋體>模式中</FONT></SPAN><SPAN lang=EN-GB
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-GB">VC</SPAN><FONT
face=宋體><SPAN
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; mso-ansi-language: EN-GB; mso-ascii-font-family: 'Times New Roman'">部分事實上的標準。</SPAN><SPAN
lang=DA
style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: both; COLOR: black; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: DA"><o:p></o:p></SPAN></FONT></P>
<H2 style="MARGIN: 6pt 0cm 3pt; TEXT-INDENT: 0cm"><A
name=_Toc69400227></A><A name=_Toc69320844><SPAN
style="mso-bookmark: _Toc69400227"><SPAN lang=EN-US
style="mso-bidi-font-family: 宋體"><SPAN
style="mso-list: Ignore"><FONT face=宋體 size=2>1.1</FONT><SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=宋體
size=2>Web技術(shù)歷史</FONT></SPAN></SPAN></A></H2>
<H3 style="MARGIN: 6pt 0cm 3pt; TEXT-INDENT: 0cm"><A
name=_Toc69400228></A><A name=_Toc69320845><SPAN
style="mso-bookmark: _Toc69400228"><SPAN lang=EN-US
style="mso-bidi-font-family: 宋體"><SPAN
style="mso-list: Ignore"><EM><FONT face=宋體
size=2>1.1.1</FONT></EM><SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><SPAN lang=EN-US><EM><FONT face=宋體
size=2>CGI</FONT></EM></SPAN></SPAN></A></H3>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: 20pt; mso-char-indent-count: 2.0; mso-para-margin-left: 3.6gd"><SPAN
lang=EN-US><FONT size=2><FONT face=宋體>web應(yīng)用開發(fā)中歷史上,CGI(common gateway
interface)是最早使用的一種技術(shù),通過為不同的平臺,不同的web
server編寫插件編寫應(yīng)用接口,來滿足通過web方式編寫應(yīng)用的需求。當時流行的方式包含NSAPI/ISAPI,使用Perl來編寫CGI程序。CGI最大的問題就是線程并發(fā)的問題,當時給很多人的感覺是CGI訪問速度慢,其主要原因是應(yīng)用程序所編寫的CGI沒有考慮多線程。<o:p></o:p></FONT></FONT></SPAN></P>
<H3 style="MARGIN: 6pt 0cm 3pt; TEXT-INDENT: 0cm"><A
name=_Toc69400229></A><A name=_Toc69320846><SPAN
style="mso-bookmark: _Toc69400229"><SPAN lang=EN-US
style="mso-bidi-font-family: 宋體"><SPAN
style="mso-list: Ignore"><EM><FONT face=宋體
size=2>1.1.2</FONT></EM><SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><SPAN lang=EN-US><EM><FONT face=宋體
size=2>Servlet</FONT></EM></SPAN></SPAN></A></H3>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt"><SPAN
lang=EN-US><FONT size=2><FONT face=宋體><SPAN
style="mso-spacerun: yes">
</SPAN>作為一種跨平臺語言的服務(wù)器端技術(shù),其一經(jīng)產(chǎn)生就備受矚目,采用Servlet開發(fā)的應(yīng)用,不用考慮平臺,多線程等讓人頭疼的問題,使得開發(fā)人員專注于業(yè)務(wù)邏輯的實現(xiàn),大大解放了生產(chǎn)力。但是,在Servlet中嵌入html無疑是開發(fā)人員的噩夢,與同時期微軟的ASP相比,Servlet在開發(fā)效率方面讓人不敢恭維。<o:p></o:p></FONT></FONT></SPAN></P>
<H3 style="MARGIN: 6pt 0cm 3pt; TEXT-INDENT: 0cm"><A
name=_Toc69400230></A><A name=_Toc69320847><SPAN
style="mso-bookmark: _Toc69400230"><SPAN lang=EN-US
style="mso-bidi-font-family: 宋體"><SPAN
style="mso-list: Ignore"><EM><FONT face=宋體
size=2>1.1.3</FONT></EM><SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><SPAN lang=EN-US><EM><FONT face=宋體 size=2>Java
Server Pages</FONT></EM></SPAN></SPAN></A></H3>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt"><FONT
size=2><SPAN lang=EN-US><FONT
face=宋體>JSP從很大程度上時參考了ASP的想法,使得采用Java語言開發(fā)服務(wù)器端應(yīng)用非常容易,同時因為java與生俱來的跨平臺、安全性、易用性優(yōu)勢,當然,還有開發(fā)人員的高工資</FONT></SPAN><SPAN
lang=EN-US
style="FONT-FAMILY: Wingdings; mso-ascii-font-family: 宋體; mso-hansi-font-family: 'Times New Roman'; mso-char-type: symbol; mso-symbol-font-family: Wingdings"><SPAN
style="mso-char-type: symbol; mso-symbol-font-family: Wingdings">J</SPAN></SPAN><SPAN
lang=EN-US><FONT
face=宋體>,使得JSP逐漸在Web服務(wù)器端應(yīng)用開發(fā)中占據(jù)了主流位置。<o:p></o:p></FONT></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
lang=EN-US><o:p><FONT face=宋體 size=2> </FONT></o:p></SPAN></P>
<H1 style="MARGIN: 6pt 0cm 3pt 36pt; TEXT-INDENT: -36pt"><A
name=_Toc69400231></A><A name=_Toc69320848><SPAN
style="mso-bookmark: _Toc69400231"><SPAN lang=EN-US
style="mso-bidi-font-family: 宋體"><SPAN
style="mso-list: Ignore"><FONT face=宋體 size=3>2.</FONT><SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=宋體
size=3>Struts安裝</FONT></SPAN></SPAN></A></H1>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt"><SPAN
lang=EN-US><FONT face=宋體 size=2>Struts作為一個J2EE
框架,很容易和你的web應(yīng)用結(jié)合起來,你僅僅需要作以下幾個步驟:</FONT></SPAN></P>
<P class=MsoNormal
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -