<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0057)http://www.blogjava.net/max/archive/2006/10/18/75857.html -->
<HTML xmlns:o><HEAD id=Head><TITLE>常用的Struts 2.0的标志(Tag)介绍 - Max On Java - BlogJava</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META id=metaKeywords content="常用的Struts 2.0的标志(Tag)介绍" name=keywords><LINK
id=MainCss
href="常用的Struts 2_0的标志(Tag)介绍 - Max On Java - BlogJava.files/style.css"
type=text/css rel=stylesheet><LINK id=RSSLink title=RSS
href="http://www.blogjava.net/max/rss.aspx" type=application/rss+xml
rel=alternate>
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<FORM id=Form1 name=Form1 onsubmit="javascript:return WebForm_OnSubmit();"
action=75857.html method=post>
<DIV><INPUT id=__EVENTTARGET type=hidden name=__EVENTTARGET> <INPUT
id=__EVENTARGUMENT type=hidden name=__EVENTARGUMENT> <INPUT
id=" __VIEWSTATE" type=hidden name=__VIEWSTATE> </DIV>
<SCRIPT type=text/javascript>
<!--
var theForm = document.forms['Form1'];
if (!theForm) {
theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
// -->
</SCRIPT>
<SCRIPT
src="常用的Struts 2_0的标志(Tag)介绍 - Max On Java - BlogJava.files/WebResource.axd"
type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript>
function ctlent(evt,id)
{
if(evt.ctrlKey && evt.keyCode == 13)
{
try
{
TempSave(id);
}
catch(ex)
{
}
finally
{
__doPostBack('AjaxHolder$PostComment$btnSubmit','')
}
}
}</SCRIPT>
<SCRIPT language=JavaScript>function SetReplyAuhor(author){document.getElementById('AjaxHolder_PostComment_tbComment').value+="@"+author+"\n";document.getElementById('AjaxHolder_PostComment_tbComment').focus();return false}</SCRIPT>
<SCRIPT
src="常用的Struts 2_0的标志(Tag)介绍 - Max On Java - BlogJava.files/ScriptResource.axd"
type=text/javascript></SCRIPT>
<SCRIPT
src="D:\C_TOOLS\tools\勉強の工具\sql2000 sp4\struts-2.0.9-all\常用的Struts 2_0的标志(Tag)介绍 - Max On Java - BlogJava.files\ScriptResource(1).axd"
type=text/javascript></SCRIPT>
<SCRIPT
src="D:\C_TOOLS\tools\勉強の工具\sql2000 sp4\struts-2.0.9-all\常用的Struts 2_0的标志(Tag)介绍 - Max On Java - BlogJava.files\ScriptResource(2).axd"
type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript>
<!--
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
// -->
</SCRIPT>
<!--done-->
<DIV id=header><!--done-->
<DIV class=header>
<DIV class=headerText><A class=headermaintitle id=Header1_HeaderTitle
href="http://www.blogjava.net/max/">Max On Java</A><BR>The value of hands-on
experience as compared to book learning is smaller in software development than
in many other fields. </DIV></DIV></DIV>
<DIV id=mytopmenu>
<DIV id=mylinks><!--done--><A class=menu id=MyLinks1_HomeLink
href="http://www.blogjava.net/">BlogJava</A> <A class=menu
id=MyLinks1_MyHomeLink href="http://www.blogjava.net/max/">首页</A> <A
class=menu id=MyLinks1_NewPostLink
href="http://www.blogjava.net/max/admin/EditPosts.aspx?opt=1">新随笔</A> <A
class=menu id=MyLinks1_ContactLink
href="http://www.blogjava.net/max/contact.aspx?id=1">联系</A> <A
class=menu id=MyLinks1_Syndication
href="http://www.blogjava.net/max/rss">聚合</A><A id=MyLinks1_XMLLink
href="http://www.blogjava.net/max/rss"><IMG
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"
src="常用的Struts 2_0的标志(Tag)介绍 - Max On Java - BlogJava.files/xml.gif"></A>
<A class=menu id=MyLinks1_Admin
href="http://www.blogjava.net/max/admin/EditPosts.aspx">管理</A> </DIV>
<DIV id=mystats><!--done-->随笔-18 评论-753 文章-0 trackbacks-0
</DIV></DIV>
<DIV id=centercontent><!--done-->
<DIV class=post>
<DIV class=postTitle><A class=postTitle2 id=viewpost1_TitleUrl
href="http://www.blogjava.net/max/archive/2006/10/18/75857.html">常用的Struts
2.0的标志(Tag)介绍</A> </DIV>
<P>在上一篇文章《<A
href="http://www.blogjava.net/max/archive/2006/10/10/74353.html">为Struts
2.0做好准备</A>》中,我过于详细地介绍了Struts 2.0开发环境和运行环境的配置,所以,本文很少涉及的以上两方面的细节。如果,您看完《<A
href="http://www.blogjava.net/max/archive/2006/10/10/74353.html">为Struts
2.0做好准备</A>》后,还有什么不明白,或者没法运行文中例子,请联系我。我的E-MAIL:Max.M.Yuan@gmail.com。<BR></P>
<P>在介绍常用标志前,我想先从总体上,对Struts 1.x与Struts 2.0的标志库(Tag Library)作比较。 </P>
<TABLE style="BORDER-TOP: #008000 2px solid; BORDER-BOTTOM: #008000 2px solid"
cellSpacing=0 cellPadding=2 border=0>
<TBODY>
<TR>
<TD
style="FONT-WEIGHT: bold; BORDER-BOTTOM: #008000 1px solid; HEIGHT: 21px; BACKGROUND-COLOR: #ccffcc"> </TD>
<TD
style="FONT-WEIGHT: bold; BORDER-BOTTOM: #008000 1px solid; HEIGHT: 21px; BACKGROUND-COLOR: #ccffcc">Struts
1.x</TD>
<TD
style="FONT-WEIGHT: bold; BORDER-BOTTOM: #008000 1px solid; HEIGHT: 21px; BACKGROUND-COLOR: #ccffcc">Struts
2.0</TD></TR>
<TR>
<TD>分类</TD>
<TD>将标志库按功能分成HTML、Tiles、Logic和Bean等几部分</TD>
<TD>严格上来说,没有分类,所有标志都在URI为“/struts-tags”命名空间下,不过,我们可以从功能上将其分为两大类:非UI标志和UI标志</TD></TR>
<TR>
<TD>表达式语言(expression languages)</TD>
<TD>不支持嵌入语言(EL)</TD>
<TD>OGNL、JSTL、Groovy和Velcity</TD></TR></TBODY></TABLE><SPAN
style="FONT-SIZE: 11px; FONT-STYLE: italic">以上表格,纯属个人总结,如有所不足或错误,请不吝指正</SPAN>
<BR>
<P>好了,我要开始介绍“常用”(这里所谓的“常用”,是指在已往工作中使用Struts里经常用到的)的标志了。</P>
<P style="TEXT-ALIGN: center"></P>
<TABLE
style="BORDER-RIGHT: #f0c000 1px solid; BORDER-TOP: #f0c000 1px solid; BORDER-LEFT: #f0c000 1px solid; BORDER-BOTTOM: #f0c000 1px solid; BACKGROUND-COLOR: #ffffce"
cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD
style="PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; HEIGHT: 39px"><IMG
src="常用的Struts 2_0的标志(Tag)介绍 - Max On Java - BlogJava.files/lightbulb_on.gif">
</TD>
<TD
style="PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; FONT-FAMILY: 华文仿宋; HEIGHT: 39px"
align=left>要在JSP中使用Struts
2.0标志,先要指明标志的引入。通过在JSP的代码的顶部加入以下代码可以做到这点。<BR><SPAN
style="FONT-SIZE: 10pt; COLOR: #bf5f3f; FONT-FAMILY: 'Courier New'"><%@</SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: 'Courier New'">taglib
</SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: #7f007f; FONT-FAMILY: 'Courier New'">prefix</SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">=</SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier New'">"s"
</SPAN><SPAN
style="FONT-SIZE
没有合适的资源?快使用搜索试试~ 我知道了~
struts2.0帮助文档
共401个文件
gif:208个
axd:56个
js:42个
需积分: 0 1 下载量 95 浏览量
2008-11-20
00:31:25
上传
评论
收藏 2.7MB RAR 举报
温馨提示
!!!!!!!!!!struts2.0标签帮助
资源推荐
资源详情
资源评论
收起资源包目录
struts2.0帮助文档 (401个子文件)
ScriptResource(1).axd 82KB
ScriptResource(1).axd 82KB
ScriptResource(1).axd 82KB
ScriptResource(1).axd 82KB
ScriptResource(1).axd 82KB
ScriptResource(1).axd 82KB
ScriptResource(1).axd 82KB
ScriptResource(1).axd 82KB
ScriptResource(1).axd 82KB
ScriptResource(1).axd 82KB
ScriptResource(1).axd 82KB
ScriptResource(1).axd 82KB
ScriptResource(1).axd 82KB
ScriptResource(1).axd 82KB
ScriptResource(2).axd 29KB
ScriptResource(2).axd 29KB
ScriptResource(2).axd 29KB
ScriptResource(2).axd 29KB
ScriptResource(2).axd 29KB
ScriptResource(2).axd 29KB
ScriptResource(2).axd 29KB
ScriptResource(2).axd 29KB
ScriptResource(2).axd 29KB
ScriptResource(2).axd 29KB
ScriptResource(2).axd 29KB
ScriptResource(2).axd 29KB
ScriptResource(2).axd 29KB
ScriptResource(2).axd 29KB
ScriptResource.axd 21KB
ScriptResource.axd 21KB
ScriptResource.axd 21KB
ScriptResource.axd 21KB
ScriptResource.axd 21KB
ScriptResource.axd 21KB
ScriptResource.axd 21KB
ScriptResource.axd 21KB
ScriptResource.axd 21KB
ScriptResource.axd 21KB
ScriptResource.axd 21KB
ScriptResource.axd 21KB
ScriptResource.axd 21KB
ScriptResource.axd 21KB
WebResource.axd 20KB
WebResource.axd 20KB
WebResource.axd 20KB
WebResource.axd 20KB
WebResource.axd 20KB
WebResource.axd 20KB
WebResource.axd 20KB
WebResource.axd 20KB
WebResource.axd 20KB
WebResource.axd 20KB
WebResource.axd 20KB
WebResource.axd 20KB
WebResource.axd 20KB
WebResource.axd 20KB
style.css 9KB
style.css 9KB
style.css 9KB
style.css 9KB
style.css 9KB
style.css 9KB
style.css 9KB
style.css 9KB
style.css 9KB
style.css 9KB
style.css 9KB
style.css 9KB
style.css 9KB
style.css 9KB
r_img1.gif 41KB
r_img4.gif 31KB
r_img_7.gif 26KB
r_img7.gif 25KB
r_others.gif 24KB
r_img4.gif 22KB
r_img5.gif 21KB
r_image1.gif 21KB
r_img6.gif 20KB
r_img_3.gif 19KB
r_token2.gif 18KB
r_img5.gif 17KB
r_checkboxlist.gif 16KB
r_img_1.gif 16KB
r_img_4.gif 16KB
r_img_6.gif 16KB
r_img3.gif 15KB
r_img_5.gif 15KB
r_img3.gif 15KB
r_img5.gif 15KB
r_img2.gif 15KB
r_img7.gif 14KB
r_img3.gif 14KB
r_img_2.gif 14KB
r_imag3.gif 14KB
r_img4.gif 14KB
r_autocompleter.gif 14KB
r_token1.gif 14KB
r_imag4.gif 14KB
r_pic2.gif 14KB
共 401 条
- 1
- 2
- 3
- 4
- 5
资源评论
my5622576
- 粉丝: 1
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功