??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲成人动漫在线观看,狠狠色婷婷狠狠狠亚洲综合,亚洲av极品无码专区在线观看http://www.tkk7.com/steelhand/category/1170.html<strong>上善若水</strong>zh-cnTue, 27 Feb 2007 08:49:24 GMTTue, 27 Feb 2007 08:49:24 GMT60Struts Classic 的变q(下)Q从1.1?.2http://www.tkk7.com/SteelHand/archive/2005/12/28/25731.html铁手铁手Wed, 28 Dec 2005 07:41:00 GMThttp://www.tkk7.com/SteelHand/archive/2005/12/28/25731.htmlhttp://www.tkk7.com/SteelHand/comments/25731.htmlhttp://www.tkk7.com/SteelHand/archive/2005/12/28/25731.html#Feedback6http://www.tkk7.com/SteelHand/comments/commentRss/25731.htmlhttp://www.tkk7.com/SteelHand/services/trackbacks/25731.htmlUntitled Document

Struts1.2.4

新特?/h2>

主要修改Q?/h3>

不赞成特?/strong>
Struts1.1中已l有很多构造不再赞成用。许多已l被删除了。所以在升?.2.4Ӟ请clean-compile 你的应用Qƈ且deprecation warnings 被打开。在升?.2.4之前强烈解决所有decprecated 的用法。最可能应用开发h员的用法是:

    1. org.apache.struts.Action statics: 如今使用org.apache.struts.Global statics
    2. Action.perform: 如今使用Action.execute

虽然没有被删除也没有被标明ؓ不赞成用,最好还是将ActionErrors 替换为ActionMessages 以确保正的操作?
TagUtils ?/strong>ModuleUtils
许多以前在org.apache.struts.utils.RequestUtils中找到的工具Ҏ如今UdCorg.apache.struts.taglibs.TagUtils 或org.apache.struts.utils.ModuleUtils包中?
GenericDataSource / GenericConnection 实现被删?/strong>
datasources manager 仍然支持Q但是我们自qdatasource implementationis q不被支持。很Ƣ迎你插入自qDataSource 实现Q但是我们没有资源来l护我们自己的实现。如果你的容器不支持DataSource实现Q推荐用Jakarta Commons?DBCP package?
Validator 增强

  1. ValidWhen

Struts Validator 如今支持ValidWhen 规则Q以便一个验证可以依赖于另一个验证?/p>

  1. IntRange 现在可以select-one 和radio 字段。比如:q得我们可以用一些有效的选项加上一个具有诸?Choose one" 标题q且gؓ"-1"的附加选项来组装一个组合框。那么当用户试图提交一个表单时Q你可以值是否ؓ-1Q从而决定是否没有选择选项?
  2. 你现在可以强制进行客LJavascript 验证来检所有约束,而不是停留在W一个错误之处。方法是讄Validator PlugIn上的一个新的属性stopOnFirstError为false?a >
  3. "required" 验证现在可以checkboxes, radio,select-one, ?select-multiple 字段cd。参见修改后的Validator CZ来看如何使用q些新的特征?
  4. 一个标准的validateUrl 规则可以让你能够某一个属性是否包含一个格式正的URL?

DigestingPlugIn
一个新的标准PlugIn 可以帮助你在application范围内创Z自己的对象图Qobject graphQ。这是创ZAction调用的业务对象的快捷方式。请参见最新的MailReader CZ来看如何使用DigestingPlugin?
ModuleConfigVerifier
虽然不是全新的,一个标准类Q用来验证模块配|,位于PlugIn 包。ModuleConfigVerifier 主要认Struts对象囄各中lg被蝲入。但是,开发h员可扩展此类来检查确保Struts 配置文g的内部一致性?
提供了支持Maven的项目文?/strong>.
新的配置DTD
推荐使用struts-config_1_2.dtd。新的DTD d了两个新的元?lt;display-name> ?<description> 到struts-config 元素中。这些元素可用于struts配置文g工具和文档生工兗在Struts 1.2.x 中,已有的Struts 配置文g可以使用两个版本的DTD 都可载入?
新的Taglib URIs
标签库的URI已经被修改已反映Struts从Jakarta Ud了Apache 的顶U项目。ؓ了兼容,使用旧的URI的TLD仍然有效Q但是鼓׃用新的URI?
Struts-Chain
试验性的Q这个新?contrib" package 使用了Jakarta Sandbox中的Responsibilty package 的Chainin 来创Z个新的RequestProcessor的Breed。未来版本可能会成ؓ默认实现?
MappingDispatchAction
一个新的标准ActionQ将控制转发到ActionMapping 参数命名的一个方法?
Cancel handlers
DispatchAction, LookupDispatchAction, ? MappingDispatchAction Q如今提供了默认的可以覆写的cancel handler。也可以指定默认的handler name?
Session-scoped ActionMessages
现在你可以将ActionMessages 保存在session 中and have them cleaned up after the first use。现在除了Action.saveMessages() 消息保存在session中还有了另外一U选择。在消息已经被访问过一ơ之后ActionMessages.isAccessed() q回true。RequestProcessor.processCachedMessages() 查询isAccessed() 已决定是否应该将消息从session中删除?
JA Mailreader
Struts Mailreader Example 应用现在包含Japanese 资源文g?
Tiles EL
Tiles tags 如今可以通过Struts EL taglib使用ELQ后者基于JSTL?
Wildcard Mappings
现在可以在actiponMapping中用通配W。详l信息参见Struts Mailreader Example application?
Action attributes
html img tag d了Action 属性,以匹配html link tag?
Module attribute
Forward元素以及多个核心标签中新增一?module" 属性。这个属性允怽通过名称Q或者前~Q指定另一个模块来创徏模块间的直接链接。新的module 属性优于contextRelative属性,q且可以常用?SwitchAction"中?

Struts 1.2.7

主要修改

依赖?/h3>

Struts 对下列组件的依赖性发生了改变Q?


依赖?

新的版本

Commons BeanUtils

Version 1.7.0

Commons Digester

Version 1.6

Commons Validator

Version 1.1.4

Commons Collections

removed

Commons Lang

removed

Core Struts

Saving Messages in the Session

在action也新增了一个方法[saveErrors(HttpSession, ActionMessages)]来将errors 保存在Session 中,q且在其W一ơ被讉K之后被自动从Session中删除。这是等同于1.2.4 中message上新增的功能?

Re-directing ActionForward

ActionRedirect 是ActionForward 的一个子c,其设计来用于重定向请求,支持在运行时d参数?

Download Action

DownloadAction 是一个提供了下蝲文g的具体细节的抽象Action?

Dispatch Helper

ActionDispatcher 是一个提?em>DispatchAction cd的行Z是不必承自DispatchAction?

Lazy Validator Form

DynaBean 风格的ActionFormQ它不需要其属性被定义Qƈ提供Lazy List ?em>Lazy Map 行ؓ?

jars 中的配置文g

配置文g(? Struts config, Validator config ?Tiles 配置文g)现在可以被保存在jars。Struts 会像以前一h查servlet contextQ但是如果没扑ֈQ?Struts 会尝试classloader L找?

Tag Library 改变

Highlighting Errors

Struts现在可以使用HTML Input Tags上的 errorKey, errorStyle, errorStyleClass ?errorStyleId 属性自动高亮错误字Dc?

Readonly / Disabled Forms

现在可以使用<html:form> tag?em>readonly ?em>disabled属性来止或者全部的字D只诅R?br> N.B. readonly 属性只影响<html:text>, <html:textarea> ?<html:password> as per the HTML 4 specification?

HTML Tag Refactoring

许多HTML标签都被重构了,以便更易使用?/p>

  1. d了prepareOtherAttributes() Ҏ- 刚好在关闭元素之前调用,提供一个地Ҏ渲染额外的属性?/li>
  2. name 属性渲染如今在prepareName() Ҏ中,以便更易提供定制行ؓ?/li>
  3. value 属性如今在prepareValue() Ҏ中以便更易提供定制行为?/li>
  4. 当渲染一个属性时Q这些标{在用属性的getter 而不是直接用实际的属性,q意味着如果你想Q比如覆盖TextTag?styleClass Q那么一个选择是覆盖getStyleClass()Ҏ?/li>
  5. 属性的渲染现在使用一个简单的 prepareAttribute() Ҏ来?em>name="attribute" 格式Q多数属性渲染一个一行语句?/li>

Bundle Attribute

bundle 属性被dC下列标签QButtonTag, CancelTag, CheckboxTag, FileTag, FrameTag, HiddenTag, LinkTag, MultiboxTag, PasswordTag, RadioTag, ResetTag, SelectTag, SubmitTag, TextTag, TextareaTag?

ErrorTag

现在新增?strong>header, footer, prefix, suffix属性?/strong>

Validator

Resource Bundle Support

Validator 配置文g?e.g. validation.xml)?lt;msg> ?<arg> 元素?em>bundle 属性现在随?lt;msg> ?em>resource 属性一起得到支持?
struts-examples webapp 中添加了新的面来展C对Resource Bundle 的支持?/em>

Struts1.2.8

主要改变

Struts 1.2.8 的主要改变是修正?em>Cross Site Scripting (XSS) q?

 



铁手 2005-12-28 15:41 发表评论
]]>Struts Classic 的变q(上)Q从1.0?.1http://www.tkk7.com/SteelHand/archive/2005/12/28/25728.html铁手铁手Wed, 28 Dec 2005 07:23:00 GMThttp://www.tkk7.com/SteelHand/archive/2005/12/28/25728.htmlhttp://www.tkk7.com/SteelHand/comments/25728.htmlhttp://www.tkk7.com/SteelHand/archive/2005/12/28/25728.html#Feedback0http://www.tkk7.com/SteelHand/comments/commentRss/25728.htmlhttp://www.tkk7.com/SteelHand/services/trackbacks/25728.html最q在~写Struts教程的时候,把Struts1.1?.2的个版本变化ȝ了一下,希望能够从整体上把握它的变迁脉络Q在开发和l护的时候也可以参考参?/i>?/font>



Struts1.1的修?/h1>

新特?/h2>

引入新的配置DTD

Struts 1.0 的配|DTD 已经不赞成用,引入了新的struts-config_1_1.dtd。在Struts 1.1 中,已有的Struts 配置文g可以使用q两个版本的DTD载入?

新的Commons 包依赖?/h3>

在Struts中用了多个Apache Jarkarta commons的组Ӟ而Commonslgq不仅仅可以用来构徏Struts应用。在Struts1.1中,所使用的Commonslg已经重构来外部依赖于Jarkarta Commons目Q而不?.0中的内部版本?
下面的Commons包包括了对相应的Struts 1.0 中的cȝ替代Q?

  1. BeanUtils [org.apache.commons.beanutils]Q?
    1. org.apache.struts.utils.BeanUtils
    2. org.apache.struts.utils.ConvertUtils
    3. org.apache.struts.utils.PropertyUtils.
  2. Collections [org.apache.commons.collections]
    1. org.apache.struts.util.ArrayStack
    2. org.apache.struts.util.FastArrayList
    3. org.apache.struts.util.FastHashMap
    4. org.apache.struts.util.FastTreeMap.
  3. Digester [org.apache.commons.digester]
    1. org.apache.struts.digester.*.

下面q几个包现在仍然被Struts框架的各U组件用:

  1. FileUpload [org.apache.commons.fileupload]
  2. Logging [org.apache.commons.logging]
  3. Validator [org.apache.commons.validator]

XML解析?/h3>

另外Q?/strong>Struts 1.1 需要符合JAXP/1.1 (而不是JAXP/1.0) API的XML解析器,比如JAXP/1.1 参考实现和Xerces 1.3.1+?

源代?/h3>

如果需要从源代码开始构建StrutsQ请使用Ant 1.4 以上版本?

集成Struts Validator

一个新的Commons Validatorlg被集成到Struts 1.1中,包含在新的Validator包中?

Tiles

引入了一个新的JSP模板l装机制TilesQ通过标签库提供集成?

Nested

Nested taglib l定CStruts1.1中,增强了现有Struts标签的功能?

新的CZ应用

Struts1.1发布包中包括了针对Validator 和Tiles的新的示例?

新的可选组?/h3>

CVS源代码库中新增了一个目录contribQ包含了很有用的Q但是没有集成到标准代码Z的扩展?

  1. Scaffold ?一个对Commons Scaffold 工具包扩展,旨在提供可重用的构徏Web应用的类
  2. Struts-EL ?可选的Struts-EL taglib 使得在Struts 中用JSTL更加Ҏ?需要Servlet 2.3 +容器支持)

Action 包的增加

基本的控制器框架 [org.apache.struts.action]新增了一下特征:

  1. ActionServlet 现在提供了对模块化应用的支持Qƈ且新增了多个扩展炏V?
  2. 新增了一个ActionMessages c,支持ActionErrors功能的一个超集,可以用于通用的消息收集传递,不仅仅针对errors?

Upload ?/h3>

文g上传c[org.apache.struts.upload]新增了一下特征:

  1. CommonsMultipartRequestHandlerQ这个新cM用Jakarta Commons FileUpload 包实C文g上传。这也是Struts的默认文件上传实现?

Util ?/h3>

工具QutilityQ类 [org.apache.struts.util]新增了以下特征:

  1. LocalStrings: 修正了与可替换参数相关的消息Q以便它不会d一个外来的无关的字W?
  2. LabelValueBean: 一个新c,定义了一个名值对的集合,可以用在<html:options> ?lt;html:optionsCollection>标签Q或者其它地斏V?
  3. MessageResources: 转移包含在特定消息字W串中的单引受?
  4. computeParameters: 允许事务令牌是唯一的参数?
  5. RequestUtils: 在构Z个查询字W串Ӟ修改来编码一?amp;受?

Bean Taglib

struts-bean 标签库[org.apache.struts.taglib.bean]中新增了以下特征Q?

  1. <bean:write>Q加入了format, locale ? bundle 属性以支持Ҏ用户当前场所q行格式化的功能Q格式化来自属性或者来自字W串资源的字W串?
  2. <bean:cookie>, <bean:header>, ?lt;bean:parameter>Q纠正了在标{?multiple"属性时Q所产生的脚本变量类型?
  3. <bean:message>Q加入了name, property, 和scope 属性,以便消息资源key 可以动态地从一个bean 或者bean 属性获得?

HTML Taglib

struts-html [org.apache.struts.taglib.html]加入了如下新特征Q?

  1. <html:link>: d?action' 属?
  2. <html:options>: 如果'property' 属性制定的属性(propertyQ返回nullQ现在标{ְ抛出一个错误消息指名实际问题而不是造成NPE?
  3. <html:option> ?<html:options>Q添加了'style' ?styleClass' 属性?
  4. <html:optionsCollection>Q新标签。提供了一个更清晰的方式来从集合组装HTML options?
  5. <bean:message>Q添加了'name', 'property' ?scope' 属性,以便消息资源key 可以动态地从bean获得?
  6. <html:messages>Q新标签。可以通过新的ActionMessages cM的一个消息集合进行P代?
  7. ActionFormQ现在,此标{֜它初始化ActionForm Bean的时候会调用reset() Ҏ。它也要求被标签所实例化的bean 是ActionForm 的一个子cR?
  8. <html:image>Q添加了'align' attribute?
  9. <html:img>Q添加了mouse 事g属?'onclick', 'ondblclick', 'onmousedown', 'onmouseup', 'onmouseover', 'onmousemove', 'onmouseout')?
  10. SubmitTag, SelectTag, LinkTag.java, CheckboxTag, ButtonTag, ImageTag, RadioTag, 和TextArea 标签Q?d了indexed 属性?

Logic Taglib

struts-logic 标签库[org.apache.struts.taglib.logic]加入了如下新特征Q?

  1. <logic:empty> ?lt;logic:notEmpty>Q新标签。类g<logic:present> ?lt;logic:notPresent>Q但对空字符串的处理不同?

Template Taglib

无变化,但无赞成使用。推荐用Tiles.

q性层面的改变

加入了Config Package

  1. ControllerConfigQ添加了inputForward 属性以指示ActionMapping.input是一个forward 而不是URI?
  2. ControllerConfigQ添加了forwardPattern 和inputPattern 到help 应用面模块的理面目录
  3. d了一个新的包以提供更多的灉|性来支持控制器配|和多模块应用的支持?

Action ?br>

基本框架(org.apache.struts.action)q行了如下修Ҏ者修正:

  1. Action cM的所有常敎ͼ不赞成用。提取到新的GlobalscM?
  2. ActionMappingQ如果模块的ControllerConfig bean [org.apache.struts.config.ControllerConfig]的inputForward 讄为trueQinput 属性将引用一个ActionForward 而不是模块相对的路径?
  3. ActionServletQ添加了convertNull 参数以在l装Form时仿真Struts 1.0 行ؓ。如果设|ؓtrueQ数值numeric Java wrapper cȝ?(如java.lang.Integer) 默认ؓnull (而不?)?
  4. ActionServletQ添加了"config/$foo" 参数Q不赞成使用包中的其他参数?
  5. ActionForms 和相关类Qؓ了保存资源,现在在响应toStringh的时候用一个StringBuffer?
  6. LookupDispatchActionQ添加的新的标准ActionQ以帮助在国际化的按钮之间进行选择?
  7. ActionForm c:修改来用ActionServletWrapper 而不是暴露ActionServlet?
  8. ActionServletWrapper c:d的新c,用于ActionFormQ以防止ActionServlet 的公开字符串属性被通过查询字符串改写?
  9. Action.MAPPING_KEY?request 属性: 如果没有指定form beanQ无条g地将选择的mapping 传递ؓh属?"org.apache.struts.action.mapping.instance")?
  10. ActionServlet:避免了在初始化Servletp|的时候导致的NullPointerException?
  11. ActionForm c:现在是真正的serializableQ因Z个非serializable 的实例变?servlet 和multipartRequestHandler) 已经成ؓtransient。但是,如果你的需要序列化和解序列化这个实例,你要自己负责重设q两个属性?
  12. ActionMessages 和ActionErrorsQThe initial order a property/key is added in is now retained.
  13. processActionForward(): 不赞成,推荐使用processForwardConfig

Upload?/h3>文g上传 (package org.apache.struts.upload) [ Upload 应用的一部分]作了如下修改和修正:
  1. CommonsMultipartRequestHandlerQ基于Jakarta Commons FileUpload 包的文g上传的新实现。这个新实现如今是默认实现?
  2. BufferedMultipartInputStreamQ解决了丢失字节的问题?
  3. ArrayIndexOutOfBoundsExceptionQ解决了已知的错误?
  4. Multipart requestsQBetter reporting for premature closing of input streams while reading multipart requests.
  5. 新行字符QNew line charactersQ:解决了上传和新换行字W时D的文件损坏问题?

Utility?/h3>

utilities (package org.apache.struts.util)发生如下修改和修正:

  1. RequestUtilsQ添加了对ControllerConfig 的forwardPattern, pagePattern, 和inputForward 属性的支持?
  2. GenericDataSourceQ不赞成。修改ؓ作ؓ[org.apache.commons.dbpc.BasicDataSource]的一个薄的Wrapper。徏议直接用BasicDataSource 或其它兼容组件?
  3. RequestUtils c:修改Z用ActionServletWrapper而不是暴?ActionServlet?
  4. 为getActionErrors ?getActionMessages Ҏd了错误消息?
  5. getActionErrors ?getActionMessagesQ添加了ҎZ传入的消息关键字从Request范围获取的对象来产生正确的相应对象的Ҏ?
  6. ActionErrors ?ActionMessagesQ创Z个这U对象的逻辑被移CRequestUtils中的一个工h法?
  7. JspException 消息Q现在在RequestUtils中生成?
  8. ConvertUtils.convertCharacter()Q现在将空字符串ƈq回默认倹{?

Bean Taglib?/h3>struts-bean c标签? [org.apache.struts.taglib.bean]发生了如下修改和修正Q?
  1. <html:errors>Q当指定了属性标{时Q如果指定的属性没有发生错误,则不会输出错误。而前面的错误L会被输出。未来的增强版本包括额外的属性来关闭header ? footer?
  2. helper Ҏ?private"改ؓ "protected" ?

HTML Taglib ?/h3>

struts-html 标签?package org.apache.struts.taglib.html)发生了如下修改和修正Q?

  1. FormTagQ修正ؓQ当指定了action mapping的名U时Q要排除查询字符丌Ӏ?
  2. ImgTagQ如果只有一个参敎ͼ能正地URLEncode 查询字符串参数?
  3. MultiboxTag.doAfterBody():Q修正ؓq回SKIP_BODY 而不是SKIP_PAGE?
  4. ErrortagQ不赞成使用defaultLocaleҎ?

Documentation CZ应用

Struts Documentation 应用(对应Struts |站的内?发生了如下修改:

  1. 重新l织了资源到单独的页面中?
  2. 在Tag Developers Guide中,d了更详细的文件上传要求?
  3. 在Building View ComponentsQ澄清了额外的i18n 支持可以由浏览器提供Qƈ且超Z框架的范围?
  4. 在Building Controller Components一节,文档 'validating' init-paramQ添加了各种参数的默认|澄清了某些web.xml 讄不是Struts特定的?
  5. Tag library 文档Q移到User's Guide下?

MailReader CZ应用

Struts MailReader Example Application 发生如下修改和修正:

  1. d了应用资源的 Russian 和Japanese 译Qƈ且设|JSP的字W集?UTF-8"以便其可以显CEnglish 或Japanese?
  2. 在Struts配置文g中交换了Edit mappings?attribute" 属性的"name" ?
  3. 删除了对"tour"文档中的保存的数据库数据的引用,因ؓq个功能已经被删除?

Exercise Taglib CZ应用

Struts Exercise Taglib Example Application 发生了如下修改和修正Q?

  1. d了针对用了"action"属性的<html:link> 的test case ?
  2. d了针对基于保存在page上下文中的集合?lt;html:options> ?<html:optionsCollection>?lt;html:select> 的test case?

不同之处

q里列出1.0?.1中新增的cd已经不赞成用的c:

1.0中不赞成使用Q?.1中已l删除的cR?/h3>
  1. 删除Qorg.apache.struts.utils.BeanUtils, org.apache.struts.utils.ConvertUtils, and org.apache.struts.utils.PropertyUtils ?替换为org.apache.commons.beanutils
  2. 删除Qorg.apache.struts.util.ArrayStack, org.apache.struts.util.FastArrayList, org.apache.struts.util.FastHashMap, org.apache.struts.util.FastTreeMap ?替换为org.apache.commons.collections
  3. 删除Q? org.apache.struts.digester.* - 替换为org.apache.commons.digester
  4. 删除Qstruts-config.dtd ? 替换为struts-config_1_1.dtd.
  5. 删除Qomnibus "struts" taglib 和其相应的TLD ?替换为bean, logic, 和html taglib?
  6. 删除Q?form" taglib 和其相应的TLD ?替换为html taglib.

Struts 1.1新增的包

  1. config
  2. taglib.nested
  3. taglib.nested.bean
  4. taglib.nested.html
  5. taglib.nested.logic
  6. validator

Struts 1.1新增的类

action

  1. ActionMessage
  2. ActionMessages
  3. DynaActionForm
  4. DynaActionFormClass
  5. ExceptionHandler
  6. RequestProcessor

actions

  1. LookupDispatchAction

taglib.html

  1. FrameTag
  2. JavascriptValidatorTag
  3. MessagesTag
  4. OptionsCollectionTag

taglib.logic

  1. EmptTag
  2. MessagesNotPresentTag
  3. MessagesPresentTag
  4. NotEmptyTag

upload

  1. CommonsMultipartRequestHandler

util

  1. LabelValueBean

Struts 1.1中新增的cL?/h3>

action.Action

  1. ACTION_SERVLET_KEY
  2. APPLICATION_KEY
  3. MESSAGE_KEY
  4. PLUG_INS_KEY
  5. REQUEST_PROCESSOR_KEY
  6. execute
  7. getResources(javax.servlet.http.HttpServletRequest)
  8. saveMessages

action.ActionServlet

  1. configDigester
  2. convertHack
  3. log
  4. processor
  5. getInternal
  6. destroyApplications
  7. destroyConfigDigester
  8. getApplicationConfig
  9. getRequestProcessor
  10. initApplicationConfig
  11. initApplicationDataSources
  12. initApplicationPlugIns
  13. initApplicationMessageResources
  14. initConfigDigester
  15. methods created for backward-compatiblity only
    1. defaultControllerConfig
    2. defaultFormBeansConfig
    3. defaultForwardsConfig
    4. defaultMappingsConfig
    5. defaultMessageResourcesConfig

taglib.html.BaseHandlerTag

  1. indexed
  2. setIndexed
  3. getIndexed

Struts 1.0 到Struts 1.1不赞成的c?/h3>

action

  1. ActionException
  2. ActionFormBeans
  3. ActionForwards
  4. ActionMappings

Struts 1.0 不赞成的cL?/h3>

action.Action

  1. FORM_BEANS_KEY
  2. FORWARDS_KEY
  3. MAPPINGS_KEY
  4. getResources()
  5. perform

ActionServlet

  1. findDataSource
  2. findFormBean
  3. findForward
  4. findMapping
  5. initDataSources
  6. methods created for backward-compatiblity only
    1. defaultControllerConfig
    2. defaultFormBeansConfig
    3. defaultForwardsConfig
    4. defaultMappingsConfig
    5. defaultMessageResourcesConfig


铁手 2005-12-28 15:23 发表评论
]]>WW与Struts的合q?/title><link>http://www.tkk7.com/SteelHand/archive/2005/11/29/21789.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Tue, 29 Nov 2005 02:38:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/11/29/21789.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/21789.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/11/29/21789.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/21789.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/21789.html</trackback:ping><description><![CDATA[<P>q两天WWq入Struts的事情也可算是比较激烈的一件事情了。从TSS上的讨论来说Q?0%以上的hq是认ؓ是好事情的?BR>其实Q不久前QStruts规划的\U中Q?.2.8可能是最后一个Classic的版本了Qƈ且改版本?.2.7之前的变化还分出了Struts <BR>Core和扩展, ?ELQ?TagQ?Tiles, Validation{等几乎都已l是独立模块了?BR><BR>至于下一代的走向Q原来规划的?个方?nbsp;Q?Action Framework和Shale. 其中Shale相对独立Q即以JSFZ心,补充和完善JSF框架之不I我看倒是有些与ADF Faces在有些地方相|当然是指前端?BR><BR>只是QActionFramework的核心原来是<!--StartFragment --> COR 模式为基Qƈ且可能还未决断。如今,WW带着Xwork加入Q可是解决了这个问题。从Struts Wiki中,q两个项目还是分开的,从Ted的邮件和WW的消息看来,新项目已l决定是Struts Ti了, 可能会合q成Action Framework,成一个东ѝ是啊,搞那么多q吗Q?BR><BR>说到Struts TiQ我才想hQ原来有一个项目是Struts TiQ是从BaseBean的BasicPortals发展h的,今天再去看看Q那个项目已l不能访问了QSf上的BasciPortal也不能下载了。纳P我还没研I这个这个Ti有什么关pR?BR><BR>直接影响我的一个问题是Q我一本以Struts 1.2.X为基的书是l写q是不写Q下一版变化太大了?BR><BR></P><img src ="http://www.tkk7.com/SteelHand/aggbug/21789.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-11-29 10:38 <a href="http://www.tkk7.com/SteelHand/archive/2005/11/29/21789.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Struts U籍QCookBookQ烦?/title><link>http://www.tkk7.com/SteelHand/archive/2005/10/18/15825.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Tue, 18 Oct 2005 08:50:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/10/18/15825.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/15825.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/10/18/15825.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/15825.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/15825.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>?A href="/calvin/">白衣</A>之请Q将以前发的所谓StrutsU籍作了个烦引在此。本pd源改~自O'Reily的Strus CookbookQ后因时间关pL再进行。如果以后有旉q需l箋Q可能会更简化一?nbsp;?A href="/SteelHand/archive/2005/05/10/4132.html"><BR><BR></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/10/4132.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>1<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:配置</SPAN></SPAN>Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>应用</SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/04/26/3825.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之v式:W?/SPAN></SPAN>1.2<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:部v</SPAN></SPAN>Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>CZ应用</SPAN></SPAN></A> </SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/04/27/3835.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之v式:W?/SPAN></SPAN>1.3<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:q移?/SPAN></SPAN>Struts 1.1</A> </SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/04/28/3876.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之v式:W?/SPAN></SPAN>1.4<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:升?/SPAN></SPAN>Struts 1.2</A> </SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/04/29/3930.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之v式:W?/SPAN></SPAN>1.5<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>?/SPAN></SPAN>:<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>?/SPAN></SPAN>JSP <SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>应用转到</SPAN></SPAN>Struts</A> </SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/04/30/3960.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之v式:W?/SPAN></SPAN>1.6<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:理</SPAN></SPAN>Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>配置文g</SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/08/4077.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之v式:W?/SPAN></SPAN>1.7<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:使用</SPAN></SPAN>Ant<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>q行构徏和部|?/SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/09/4110.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之v式:W?/SPAN></SPAN>1.8<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:?/SPAN></SPAN>XDoclet <SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>产生</SPAN></SPAN>Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>配置文g</SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/25/5148.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>2<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:</SPAN></SPAN>UI</A> </SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/10/4136.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>1<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>2.1<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:用插件来q行应用初始?/SPAN></SPAN></A> </SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/11/4159.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>1<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>2.1<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:关于标签库声?/SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/12/4211.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>1<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>2.3<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:?/SPAN></SPAN>JSP<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>中用常?/SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/13/4247.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>1<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>2.4<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:多配|文?/SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/17/4423.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>1<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>2.5<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>?/SPAN></SPAN>. <SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>应用重构ؓ模块</SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/17/4426.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>1<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>2.6<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>?/SPAN></SPAN>. <SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>使用多个资源?/SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/18/4474.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>1<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>2.7<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>?/SPAN></SPAN>. <SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>讉K来自于数据库中的消息资源</SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/19/4867.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>1<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>2.8<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>?/SPAN></SPAN>. <SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>有选择地禁?/SPAN></SPAN>Action</A> </SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/27/5265.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>2<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>3.1<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:</SPAN></SPAN><SPAN lang=EN-US><SPAN lang=EN-US> </SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>使用</SPAN></SPAN>JSTL</A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/27/5266.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>2<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>3.2<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:使用</SPAN></SPAN>Struts-EL <SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>标签</SPAN></SPAN></A> </SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/30/5324.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>2<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>3.3<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:昄索引属?/SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/05/31/5368.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>2<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>3.4<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:在表单中使用索引属?/SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/06/01/5413.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>2<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>3.5<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:</SPAN></SPAN><SPAN lang=EN-US><SPAN lang=EN-US> </SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>?/SPAN></SPAN>JSTL<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>循环中用烦引属?/SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/06/03/5506.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>2<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>3.6<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:</SPAN></SPAN><SPAN lang=EN-US><SPAN lang=EN-US> </SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>从图像提交表?/SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/06/07/5654.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>2<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>3.7<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:</SPAN></SPAN><SPAN lang=EN-US><SPAN lang=EN-US> </SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>动态?/SPAN></SPAN>JavaScript</A> </SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/06/08/5723.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>2<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>3.8<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式:使用</SPAN></SPAN>JavaScript<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>动态改变选择?/SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/06/29/6861.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>2<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D,W?/SPAN></SPAN> 3.9<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>式,产生动态选择列表目</SPAN></SPAN></A></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A HREF="/SteelHand/archive/2005/07/01/6974.html">Struts<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>U籍之第</SPAN></SPAN>2<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>D:W?/SPAN></SPAN>3.10<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>?/SPAN></SPAN>:<SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN lang=EN-US>qo文本输入</SPAN></SPAN></A> </SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><o:p> </o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><o:p> </o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><o:p> </o:p></SPAN></P></P><img src ="http://www.tkk7.com/SteelHand/aggbug/15825.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-10-18 16:50 <a href="http://www.tkk7.com/SteelHand/archive/2005/10/18/15825.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《Struts in Action中文版》完整版http://www.tkk7.com/SteelHand/archive/2005/10/12/15329.html铁手铁手Wed, 12 Oct 2005 07:00:00 GMThttp://www.tkk7.com/SteelHand/archive/2005/10/12/15329.htmlhttp://www.tkk7.com/SteelHand/comments/15329.htmlhttp://www.tkk7.com/SteelHand/archive/2005/10/12/15329.html#Feedback164http://www.tkk7.com/SteelHand/comments/commentRss/15329.htmlhttp://www.tkk7.com/SteelHand/services/trackbacks/15329.html下蝲地址分别是:
Part1 
Part2
Part3
Part4
Part5
Part6


下蝲是正常的Q如果不能请查你的网l。解压时需要全部下载完成后q行?/FONT>

铁手 2005-10-12 15:00 发表评论
]]>
关于Struts in Action 完整?/title><link>http://www.tkk7.com/SteelHand/archive/2005/10/11/15264.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Tue, 11 Oct 2005 08:27:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/10/11/15264.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/15264.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/10/11/15264.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/15264.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/15264.html</trackback:ping><description><![CDATA[<a title="" >Struts</a> in Action l于整理完了。ƈ且我Ҏq里的朋友们提供的意见和指出的错误进行了修改Q也Ҏ原书的勘误作了修攏V?br> 我将原来的分章节的文章删除了Q准备上传完整版。可是文件太大,而且pȝSize限制?M.又是一阵忙z,压羃了,减小PDF文g的大了....最后的压羃包到1.8M左右。可是网l太慢,q是上传不成功。郁P<br> 只好{网l不忙的时候再上传Q分开打包M太好?br> <br> <br> 昨天到学校报C。拿到课表,居然本学期每周居?-4晚上Q周六全天上课,又郁P那里忙得q来Q看来得好好盘算一下怎么办了Q?br> <br> 而且Q以后可能到q里的时间少了,我准备的一些文档的推出速度则更加慢了?br> <br> <br><img src ="http://www.tkk7.com/SteelHand/aggbug/15264.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-10-11 16:27 <a href="http://www.tkk7.com/SteelHand/archive/2005/10/11/15264.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《Struts in Action》中文版 W?5?/title><link>http://www.tkk7.com/SteelHand/archive/2005/09/27/14211.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Tue, 27 Sep 2005 07:56:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/09/27/14211.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/14211.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/09/27/14211.html#Feedback</comments><slash:comments>8</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/14211.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/14211.html</trackback:ping><description><![CDATA[最q简直没有时_可能W误和错误颇多。请在这里指出来Q一q在完整版中Ҏ。谢谢!<BR><A href="http://www.tkk7.com/SteelHand/SteelHand/Files/SteelHand/StrutsInAction_Chinese(15).rar">q里下蝲</A></A>?BR><BR><EM><FONT style="BACKGROUND-COLOR: #ffffff" color=#ff0000><STRONG> 不知Z么提交后q接地址的上下文根会变。如果上面连接不行,L接用这个地址Q?BR></STRONG></FONT></EM><EM><FONT style="BACKGROUND-COLOR: #ffffff" color=#ff0000><STRONG>http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese(15).rar</STRONG></FONT></EM><img src ="http://www.tkk7.com/SteelHand/aggbug/14211.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-09-27 15:56 <a href="http://www.tkk7.com/SteelHand/archive/2005/09/27/14211.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>TOP 10 Resesons to Perfer JSF on Strutshttp://www.tkk7.com/SteelHand/archive/2005/08/24/10856.html铁手铁手Wed, 24 Aug 2005 01:47:00 GMThttp://www.tkk7.com/SteelHand/archive/2005/08/24/10856.htmlhttp://www.tkk7.com/SteelHand/comments/10856.htmlhttp://www.tkk7.com/SteelHand/archive/2005/08/24/10856.html#Feedback3http://www.tkk7.com/SteelHand/comments/commentRss/10856.htmlhttp://www.tkk7.com/SteelHand/services/trackbacks/10856.html
 
  • Components
  •       lglgQJAVA一直希望有.NET和Delphi的RAD和拖攑ּ开发,虽然现在和那两种q有差距Q但毕竟已经是开始了。第3方组件厂商也开始出现萌芽的态势。另外一个值得注意的趋势就是,AppleQ这个艺术与技术的完美~造者,其WebObjectQ作为Web的组建式框架的祖宗,也准备开放了。而且Q按照Apple也{向Intelq_的介l来看,也许不久的一天,它就可以完美地运行在WinTel架构下了?/EM>
       

  • Render Kits
  •    支持渲染包可以是一个非帔R要的特征Q这样可以支持不同的昄技术。移植性很好。针对XMLQ?PDFQ?VML{等。不需要改动其它的东西?/EM>

  • Renderers
  • Value Binding Expressions
  •    其实比较特色的是Method Binding,q点在其他EL或者类似的技术上q没有?/EM>

  • Event Model
  • Extensibility
  • Managed Beans (Dependency Injection)
  •   只有Spring 才IoC吗?不是的,其实现在IoC无处不在?/EM>

  • POJO Action Methods
  • JSF is the standard Java-based web app framework
  • There's only one Struts
  •    Struts是一个品,而JSF是一个标准。二者层面不一栗有很多优秀的实C出现的?/EM>

    甚以为是Q故摘录于此。原文见Q?A >http://jroller.com/page/dgeary?entry=top_ten_reasons_to_prefer

    其实QJSF的学习曲UK怹低,呵呵?BR>



    铁手 2005-08-24 09:47 发表评论
    ]]>
    《Struts in Action》中文修订版 W?4?/title><link>http://www.tkk7.com/SteelHand/archive/2005/08/17/10360.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Wed, 17 Aug 2005 09:24:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/08/17/10360.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/10360.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/08/17/10360.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/10360.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/10360.html</trackback:ping><description><![CDATA[<font color="#006400"><em><strong>最q忙于修订《Javaserver Faces in Action》,都没有时间来修改q个文档了。我发现校对文稿真的是一个非常辛苦的事情Q比起写来,要麻烦得多。何冉|又不是一个细致的人。真是有些痛苦。今天抽Ҏ间来l箋这部分发点出来?/strong></em><br><br></font>很多人都问,Struts中用什么处理模型和数据?br><br> 我以前总说Q这和Struts有什么关p?<br>从实际上来说Q这的确和他没什么关p,因ؓ他是M中立的。你可以使用你自己喜Ƣ的MM实现。但是正因如此,其实也还是和Ҏ关系的,那就是它本质上的MVC的分层设计?br> <br>对Struts本n来说Q作为最成功的一个MVC框架Q实际上其最成功之处和精彩之处就是其中的CQ即它是一个比较好的Front Controller 模式的实现?nbsp;很多地方Q特别是其它利用了它的大型框Ӟ都利用了他的q个优点。比如Oracle 的ADF?br> <br>但是对小型应用来_很多人在争论QAction到底是Mq是C。其实这q不重要Q如果应用小型,你尽可以在其中实现你的Biz Logic。这L话,它就是M。否则,E大型一些的应用Q最好还是作Z个C来用,臛_是C的一个helper?br> <br>那么Q具体的M怎么办呢Q常规的做法是委托给POJO或者EJB。但是基于分层的目的Q这中间通常是需要一个缓Ԍ那就是Facade。SUN? 官方Facade实现原来推荐的是Session EJBQ这感情好,如果你能搞定它,业务和实体也可以管使用EJB。如果你不能负担EJB之痛Q你可以使用POJO Facade来访问你的POJO实现的逻辑?br> <br>那么你的POJO生长在哪里?目前的Spring {IoC容器正是一个好地方。实际上我想Spring 成ؓ是“框架之框架”?br>OKQ那么数据层又如何?嘿嘿Q实际上Struts太远啦,严格说v来他不想知道Q也不用知道。你可以使用M需要的持久实现Q关键是作ؓDTO传递给C和V的结果,以及它们之间的{换?br><br>本书中的ProcessBean是早期的一个POJO FacadeQ非怸错。但是不知ؓ和这个包一直在Apache Commons的沙坑中跳不出来。而且如今有些陈旧了?br>不过Q本章其中的RSS和Lucene的讲q倒是不错。值得参考?br><br><A href="http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese%2814%29.rar">q里下蝲</a>?br><br><img src ="http://www.tkk7.com/SteelHand/aggbug/10360.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-08-17 17:24 <a href="http://www.tkk7.com/SteelHand/archive/2005/08/17/10360.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《Struts in Action》中文修订版 W?3?/title><link>http://www.tkk7.com/SteelHand/archive/2005/08/04/9199.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Thu, 04 Aug 2005 06:01:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/08/04/9199.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/9199.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/08/04/9199.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/9199.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/9199.html</trackback:ping><description><![CDATA[一直以为,国际化是个问题,本地化不是问题?BR>但是Q老是有h层出不穷地问中文的问题,真是生生被他们气歅R?BR><BR>有时间的时候准备写一文档,d底底的描qC下Java的文字处理问题。不q这里先说几Ҏ重要的:<BR><BR>1 先要搞清除字W集QCharacterSetQ和~码Ҏ(Encoding Schema)的意思;<BR>2 Javapȝ内置Unicode的问题处理方式,q点是最基本的前提,不要忘了Q?BR>3 操作pȝ的代码页QCodePageQ和字符集的关系Q?BR>4 JSP中,注意page指o的charset不是字符集的意思,实际上是一中Java内置的字W集和编码方案结合的~码Q?BR>5 不知道ؓ什么L人喜ƢGB2312Q记住:<FONT face=Arial><STRONG>早过时了</STRONG></FONT>Q?BR>6 解决~码问题的方法就是尽量统一到Javapȝ的编码上Q?BR>7 只有国际化才能彻底解决中文化的问题。尽量不要强行{码,如果每一个字W都转码Q效率如何不用说了吧Q?BR>8 学会使用Local<BR><BR>好了Q先说这么多?BR><BR><A href="http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese(13).rar">下蝲q一?/A>?img src ="http://www.tkk7.com/SteelHand/aggbug/9199.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-08-04 14:01 <a href="http://www.tkk7.com/SteelHand/archive/2005/08/04/9199.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《Struts in Action》中文修订版 W?2?/title><link>http://www.tkk7.com/SteelHand/archive/2005/08/02/8985.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Tue, 02 Aug 2005 01:39:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/08/02/8985.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/8985.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/08/02/8985.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/8985.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/8985.html</trackback:ping><description><![CDATA[<P>据Struts声称Q?Validator是从Struts0.5开始用了。从Struts1.1开始,Validator成为Jarkarta Commons的一个组件。从而成Z个非常有用的通用工具?BR>关于Commons Validator的地址Q可以访问:<A >http://jakarta.apache.org/commons/validator/</A>  。Struts发行包中带有q个包,也可以单独在此处q行下蝲?BR><BR>Validator应用的Struts官方指南参见Q?A >http://struts.apache.org/userGuide/dev_validator.html</A> 其中也有几个相关资源?/P> <UL>使用中要注意的有几点Q?BR><BR> <LI>注意DynaValidator的用与常规ActionForm的校?/LI> <LI>注意mapping中validate的配|?/LI> <LI>注意action中validateҎ与validator的关p?/LI></UL> <P>Validator是一个同用框Ӟ你可以用在很多地方Q包括最q流行的Spring 之中?BR><BR><A href="http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese(12).rar">本章下蝲</A>?BR></P> <P></P><img src ="http://www.tkk7.com/SteelHand/aggbug/8985.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-08-02 09:39 <a href="http://www.tkk7.com/SteelHand/archive/2005/08/02/8985.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《Struts in Action》中文修订版 W?1?/title><link>http://www.tkk7.com/SteelHand/archive/2005/07/29/8718.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Fri, 29 Jul 2005 02:30:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/07/29/8718.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/8718.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/07/29/8718.html#Feedback</comments><slash:comments>10</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/8718.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/8718.html</trackback:ping><description><![CDATA[<P>我一直认为tiles应该从Struts中独立出来,成ؓ一个单独的目。至也应该攑օCommons之中。不q,到Struts1.2版本中仍然没有动静。ShaleҎ也没有明的说法?BR><BR>两大主要的布局工具Q相比而言Q我q是觉得Tiles要好用一些,而且方式优雅。对此,Struts分发包所带的例子tiles-Document是一个非常有用的学习例子。(很多人来消息_惌通过例子学习StrutsQ那么朋友,你可曄I过Struts的自带例子?如果没有Q那好好看一看吧。关于Struts中的CZE序Q大家可以参考我前面所写的“StrutsU籍”中的一。)。Tiles不仅是对布局Q而且本nq自带对菜单的支持。而且Q著名的开源门户项?<A href="www.liferay.com">liferay  </A>是使用的Tiles作ؓ布局工具Q实Cportlet的表玎ͼ甚是了得。(另一个很好的portal <A >ExoPlatform</A>则是使用了JSF。)<BR>当然Q?A >Sitemesh</A>也非怸错,而且׃使用了装饰器模式和Servlet FilterQ灵zL更高。你可以用它做你爱做的事情,做你惛_的事情。不q,g因ؓSitemesh?!--StartFragment --><A href="www.opensymphony.com"> <FONT size=-1><FONT color=#008000>opensymphony</FONT></FONT> </A>的项目,好像大家׃为它只能?A >WebWork</A>配对使用Q或者心存这U假设。其实不Ӟ呵呵Q这U假设不成立。它们两个都是中立的。完全可以根据你的需要选择使用。SiteMesh也完全可以用于Struts目?BR>q有一个项目是<A ><A title="" ><A title="" ><A title="" ><a title="" >Struts</a></A></A></A>-Layout,</A>q个目则主要偏重于l微的表玎ͼ比如树型Q面板之cȝ。较用于M布局。不q这些对JSF来说都是Case了?BR><BR>IBM WSAD本n支持一U模板的布局处理方式Q大家可以参考。它实际上是一套可以由IDE理的代码复制和重用机制。对整体布局和网站基Q比如导航、菜单、面包屑、SiteMap{支持也非常不错。大家也可以研究一下?BR><BR>开发工h_最好的Struts开发工兯?A >M7</A>的NitroxQ对Tiles的支持也非常之棒。可惜不是免费的。也鲜见破解版本。另外就?A >Exadel Studio</A>Q也非常不错Q这斚w好像是在学习M7。而且它前些时候刚推出免费版本?BR>当然Q各个商业IDEq是对其支持的不错?BR><BR>q一章感觉ƈ为把Tiles讲解够深。至于Tiles的高U应用,在Tiles-DocumentCZ应用中,可以扑ֈ一个相关的链接?BR><A href="http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese(11).rar"><BR>在这里下?/A>q一章?/P><img src ="http://www.tkk7.com/SteelHand/aggbug/8718.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-07-29 10:30 <a href="http://www.tkk7.com/SteelHand/archive/2005/07/29/8718.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《struts in Action》中文修订版 W?0?/title><link>http://www.tkk7.com/SteelHand/archive/2005/07/25/8400.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Mon, 25 Jul 2005 04:36:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/07/25/8400.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/8400.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/07/25/8400.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/8400.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/8400.html</trackback:ping><description><![CDATA[<A title="" ><A title="" ><a title="" >Struts</a></A></A> 标签库很多h都说隄。既焉用,q脆qJSTL代替好了。一般来_JSTL臛_可以完成95%的Struts Tag的功能?nbsp; 而且JSTLq有很多Struts Tag所不能的标{?BR>当然Q我们徏议,除非JSTL不能解决的问题用Struts TagQ大多数情况q是推荐使用JSTL为好?BR>W?0章没有涉及Struts ELQ其实这也没什么关pR大多数时候你q是不需要用它。毕竟,对于EL来说Q我们推荐JSTL的EL也最好{到JSP EL上面。毕竟,q是标准。JSP 2.0可以直接支持JSP ELQ对于以前的版本Q比?.3Q?可以使用一个指令打开它?BR><BR>好了Q第10章在<A href="http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese(10).rar">q里下蝲?/A><img src ="http://www.tkk7.com/SteelHand/aggbug/8400.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-07-25 12:36 <a href="http://www.tkk7.com/SteelHand/archive/2005/07/25/8400.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《Struts in Action》中文修订版 W??/title><link>http://www.tkk7.com/SteelHand/archive/2005/07/23/8234.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Sat, 23 Jul 2005 04:08:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/07/23/8234.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/8234.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/07/23/8234.html#Feedback</comments><slash:comments>8</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/8234.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/8234.html</trackback:ping><description><![CDATA[<A href="http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese(9).rar">q里下蝲</A>?img src ="http://www.tkk7.com/SteelHand/aggbug/8234.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-07-23 12:08 <a href="http://www.tkk7.com/SteelHand/archive/2005/07/23/8234.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《Struts in Action》中文修订版 W??/title><link>http://www.tkk7.com/SteelHand/archive/2005/07/21/8148.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Thu, 21 Jul 2005 13:06:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/07/21/8148.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/8148.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/07/21/8148.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/8148.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/8148.html</trackback:ping><description><![CDATA[l箋发布Q这一章内容较多。大家注意,本章介绍了很多Apache Scafold包对Struts的扩展,目前q个包已l成为Apache Jakarta?Commons目的一个组Ӟ但是发生了变化。如果需要参考,可以去Sourceforge下蝲原来的版本?BR><BR>W??文档?A href="http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese(8).rar">q里下蝲</A>?img src ="http://www.tkk7.com/SteelHand/aggbug/8148.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-07-21 21:06 <a href="http://www.tkk7.com/SteelHand/archive/2005/07/21/8148.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《Struts in Action》中文修订版 W??/title><link>http://www.tkk7.com/SteelHand/archive/2005/07/20/8022.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Wed, 20 Jul 2005 01:27:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/07/20/8022.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/8022.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/07/20/8022.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/8022.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/8022.html</trackback:ping><description><![CDATA[<SCRIPT type=text/javascript><!-- google_ad_client = "pub-4944223532337363"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "A8DDA0"; google_color_bg = "EBFFED"; google_color_link = "0000CC"; google_color_url = "008000"; google_color_text = "6F6F6F"; //--></SCRIPT> <SCRIPT src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </SCRIPT> <P>W?章已l完成。可以在<A href="http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese(7).rar">此处下蝲</A>?BR><BR>查看了一下下载统计,发现了很有趣的现象。如下图Q?BR><BR><IMG height=213 alt=dlcounter.jpg src="http://www.tkk7.com/images/blogjava_net/steelhand/dlcounter.jpg" width=560 border=0><BR><BR><BR>Z么第4章这么少Q下载两q么不^衡?奇怪?Q!<IMG height=19 src="http://www.tkk7.com/Emoticons/omg_smile.gif" width=19 border=0><BR><BR></P><img src ="http://www.tkk7.com/SteelHand/aggbug/8022.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-07-20 09:27 <a href="http://www.tkk7.com/SteelHand/archive/2005/07/20/8022.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《Struts in Action 》中文修订版 W??/title><link>http://www.tkk7.com/SteelHand/archive/2005/07/16/7825.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Sat, 16 Jul 2005 10:51:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/07/16/7825.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/7825.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/07/16/7825.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/7825.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/7825.html</trackback:ping><description><![CDATA[<P>W?章也完成了。本章内容较,但是ActionForward仍旧很重要,不过好多人在Struts中都没好好用它来l织URIQ大多直接请求到Action。这样也没什么不好,它毕竟提供了一U包装和l织手段?BR><BR><A href="http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese(6).rar">q里下蝲</A>?/P><img src ="http://www.tkk7.com/SteelHand/aggbug/7825.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-07-16 18:51 <a href="http://www.tkk7.com/SteelHand/archive/2005/07/16/7825.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《Struts in Action》中文修订版 W??/title><link>http://www.tkk7.com/SteelHand/archive/2005/07/15/7787.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Fri, 15 Jul 2005 10:00:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/07/15/7787.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/7787.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/07/15/7787.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/7787.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/7787.html</trackback:ping><description><![CDATA[<P> q一章终于修改完毕,q一章的毛病比较多,错别字也多。看得我D?BR>再次说明Q如果发现错误,一定让我知道。谢谢?BR><BR><A href="http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese(5).rar">q里下蝲</A>?BR></P><img src ="http://www.tkk7.com/SteelHand/aggbug/7787.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-07-15 18:00 <a href="http://www.tkk7.com/SteelHand/archive/2005/07/15/7787.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《Struts in Action》中文修订版W??/title><link>http://www.tkk7.com/SteelHand/archive/2005/07/14/7687.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Thu, 14 Jul 2005 06:03:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/07/14/7687.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/7687.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/07/14/7687.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/7687.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/7687.html</trackback:ping><description><![CDATA[地址Q?A href="http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese(4).rar">http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese(4).rar</A><BR><BR><img src ="http://www.tkk7.com/SteelHand/aggbug/7687.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-07-14 14:03 <a href="http://www.tkk7.com/SteelHand/archive/2005/07/14/7687.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《Struts in Action》的源代码下?/title><link>http://www.tkk7.com/SteelHand/archive/2005/07/11/7491.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Mon, 11 Jul 2005 03:19:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/07/11/7491.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/7491.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/07/11/7491.html#Feedback</comments><slash:comments>42</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/7491.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/7491.html</trackback:ping><description><![CDATA[你可以在本书的网站处下蝲Q?br>地址是:<a >http://www.manning.com/books/husted/source</a><br><span style="color: rgb(255, 20, 147); font-style: italic; font-weight: bold;">很多此连接不能下载,其实可以的。如不能Q可能是你的|络q接的问题。(20050714Q?/span><br> <br> <br>你也可以在Sourceforge上面下蝲Q?br>地址是:<a >http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=64603</a><br>q里面包括本书所有的代码部分?br><br><img src ="http://www.tkk7.com/SteelHand/aggbug/7491.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-07-11 11:19 <a href="http://www.tkk7.com/SteelHand/archive/2005/07/11/7491.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《Struts in Action中文修订版》第3?/title><link>http://www.tkk7.com/SteelHand/archive/2005/07/11/7490.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Mon, 11 Jul 2005 02:57:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/07/11/7490.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/7490.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/07/11/7490.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/7490.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/7490.html</trackback:ping><description><![CDATA[?A href="http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese(3).rar">q里</A>下蝲?img src ="http://www.tkk7.com/SteelHand/aggbug/7490.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-07-11 10:57 <a href="http://www.tkk7.com/SteelHand/archive/2005/07/11/7490.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《Struts in Action》中文修订版 W??/title><link>http://www.tkk7.com/SteelHand/archive/2005/07/08/7340.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Fri, 08 Jul 2005 03:24:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/07/08/7340.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/7340.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/07/08/7340.html#Feedback</comments><slash:comments>8</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/7340.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/7340.html</trackback:ping><description><![CDATA[老规矩,Ƣ迎扑և错误哈?br>另外Q请不要要求我单独发送?br>?A href="http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese%282%29.rar">q里下蝲</a>?br> <br> 另外Q本书又Ҏ原书的勘误表Q进行了仔细的校对和更新。修改了一些细微的错误?br> 修改之后Q我会同时修Ҏ处的下蝲源,请仔l检查所下蝲文档修订日期?br><img src ="http://www.tkk7.com/SteelHand/aggbug/7340.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-07-08 11:24 <a href="http://www.tkk7.com/SteelHand/archive/2005/07/08/7340.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>《Struts in Action》中文修订版Q第1?/title><link>http://www.tkk7.com/SteelHand/archive/2005/07/06/7169.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Wed, 06 Jul 2005 02:06:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/07/06/7169.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/7169.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/07/06/7169.html#Feedback</comments><slash:comments>21</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/7169.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/7169.html</trackback:ping><description><![CDATA[本书已经出版了,但是不是我的版本。那本书如果有问题,我不负责的哦?IMG height=19 src="http://www.tkk7.com/Emoticons/shades_smile.gif" width=19 border=0><BR><BR>l过修改后,现在发布陆箋发布。会全书都发布在这里。如果还有错别字或者其他错误指出,请大家指出来。在q里留言也行Q邮件亦可。我没那么多旉在仔l校对了。非常感谢。!<BR><BR>W?章的下蝲地址是:<BR><BR><BR><A href="http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese(1).rar">http://www.tkk7.com/Files/SteelHand/StrutsInAction_Chinese(1).rar</A><img src ="http://www.tkk7.com/SteelHand/aggbug/7169.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-07-06 10:06 <a href="http://www.tkk7.com/SteelHand/archive/2005/07/06/7169.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>StrutsU籍之第2D:W?.10?qo文本输入http://www.tkk7.com/SteelHand/archive/2005/07/01/6974.html铁手铁手Fri, 01 Jul 2005 01:57:00 GMThttp://www.tkk7.com/SteelHand/archive/2005/07/01/6974.htmlhttp://www.tkk7.com/SteelHand/comments/6974.htmlhttp://www.tkk7.com/SteelHand/archive/2005/07/01/6974.html#Feedback2http://www.tkk7.com/SteelHand/comments/commentRss/6974.htmlhttp://www.tkk7.com/SteelHand/services/trackbacks/6974.htmlW?.10? qo文本输入

    问题

    你想要渲染包含HTML标记的数据,q且希望该数据被览器当作HTML标记解释和处理?/P>

    动作?/H4>

    很简单,可以使用Q?/P><bean:write name="myForm" property="freeText" filtered="false"/>

     

    在用JSTLӞ你也可以使用未过滤的|

    <c:out value="${myForm.freeText}" escapeXml="false"/>

     

    动作变化

    在你使用Struts bean:write标签来生文本时Q默认情况下M对HTML处理敏感的字W都要被它们的对{实体代ѝ例如,大于号字W?>) 被替代?amp;gt;字符实体。这U特征称为是响应qoQ?response filteringQ,默认情况下是Ȁzȝ。在大多数情况下Q过滤正是希望的行ؓQ因为未l过滤的文本可能被浏览器误解释。Table 3-4 列出了被bean:write标签qo的字W和它们的对应实体?/P>
    Table 3-4. 被过滤的字符

    字符名称

    字符?/STRONG>

    替代实体

    大于

    &lt;

    &gt;

    &W号

    &

    &amp;

    双引?/P>

    "

    &quot;

    反斜?/P>

    \

    &#39;

     

    但是有时候,你希望被渲染的文本中包括HTML 标签。假设你有一个在U日志应用,允许用户输入要昄在一个页面中的文本。允怋用HTML 标签得用户可以那些可以格式化文本的标记。文本中可能包含链接,不同的字体,以及囑փ{等。在其他情Ş下,你的应用可能可能q会从其他来源,比如另一个URLQ一个XML文gQ一个Web Service或者数据库中,获得HTML模板文本?/P>

    通过bean:write标签的filtered属性设|ؓfalseQ你可以告诉Struts标签不要使用相应的实体替?tag not to Ҏ字符。首先,我们来看一下过滤是如何工作的。假设一个用户在表单中输入了下面的文本:

    Apache Struts Web Framework <b>rocks</b>!

     

    现在q个文本被bean:write标签来渲染显C。当filtered 属性设施ؓtrueӞҎ字符被其对{物替换Q这h本看h׃是:

    Apache Struts Web Framework &lt;b&gt;rocks&lt;/b&gt;!

    q很有可能不是用h惌的。他惌的是"Apache Struts Web Framework rocks!"。但是,因ؓ意图是想要允许用戯入装饰文本的HTML标签Q那么将filtered属性设|ؓfalse ׃得到正确的渲染:

    Apache Struts Web Framework <b>rocks</b>!

     

    览器将认识q个标签Qƈ且按其所愿正的应用HTML 标记?/P>

    q在渲染一个Web面时式一个有用的机制。但是,在用这个方法时必须_心。如果数据是没有qo的,那么可能会危及渲染后的 HTML面的布局Q整个页面可能会看v来遭到破坏。例如,假定下面的文本被输入Q?/P>Apache Struts Web Framework <b>rocks<b>!

     

    咋看hQ这没什么问题。但是,注意到b元素的后面一个关闭标{斜杠~失了。这个错误很Ҏ发生Q而且q可能会使得面中后面的所有文本都是粗体?/P>

    不幸的是Q要避免q类错误是很困难的。最好还是试囄保输入的数据都是正确有效的HTML。还有个选择是通过XML 解析器来处理输出。它会检诸如标C匚w之类的问题。你q可以通过一些能够试囄正问题的解析器来完成Q比如Jtidy。最后,如果数据是来自于非受控的来源Q你可以选择完全不允许HTML。如果你q想使用一些文本装饰功能的话,q可以考虑使用WikiText 或者UBB Code之类的格式表C来替代?/P>

    相关动作

    JTidy 提供了一个命令行接口和Java API 来解析和整理HTML。关?A name=jakartastrutsckbk-CHP-3-ITERM-1594>JTidy 的细节请讉Khttp://jtidy.sourceforge.net?/P>

    UBBCode 是PHP本n支持的一U标记格式。也可以在Java中处理UBBCode。一个解?A name=jakartastrutsckbk-CHP-3-ITERM-1595>UBBCode 的PHP函数Q有人在Java中重写了Q地址可见Q?A >http://www.firegemsoftware.com/other/tutorials/ubb.php.



    铁手 2005-07-01 09:57 发表评论
    ]]>StrutsU籍之第2D,W?3.9式,产生动态选择列表目http://www.tkk7.com/SteelHand/archive/2005/06/29/6861.html铁手铁手Wed, 29 Jun 2005 02:05:00 GMThttp://www.tkk7.com/SteelHand/archive/2005/06/29/6861.htmlhttp://www.tkk7.com/SteelHand/comments/6861.htmlhttp://www.tkk7.com/SteelHand/archive/2005/06/29/6861.html#Feedback9http://www.tkk7.com/SteelHand/comments/commentRss/6861.htmlhttp://www.tkk7.com/SteelHand/services/trackbacks/6861.html阅读全文

    铁手 2005-06-29 10:05 发表评论
    ]]>
    StrutsU籍之第2D:W?.8式:使用JavaScript动态改变选择?/title><link>http://www.tkk7.com/SteelHand/archive/2005/06/08/5723.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Wed, 08 Jun 2005 04:34:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/06/08/5723.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/5723.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/06/08/5723.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/5723.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/5723.html</trackback:ping><description><![CDATA[     摘要: W?.8? 使用JavaScript动态改变选择?问题 你希望用JavaScript 来根据从应用模型中获得的数据来动态设|显C在一个HTML select元素中的条目?动作要领 使用Struts logic:iterate标签来ؓ不同的选项集创建JavaScript 数组。然后用JavaScript 的onchange事g句柄来在q行时修改options集。Example 3-...  <a href='http://www.tkk7.com/SteelHand/archive/2005/06/08/5723.html'>阅读全文</a><img src ="http://www.tkk7.com/SteelHand/aggbug/5723.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-06-08 12:34 <a href="http://www.tkk7.com/SteelHand/archive/2005/06/08/5723.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>StrutsU籍之第2D:W?.7式: 动态生JavaScripthttp://www.tkk7.com/SteelHand/archive/2005/06/07/5654.html铁手铁手Tue, 07 Jun 2005 04:32:00 GMThttp://www.tkk7.com/SteelHand/archive/2005/06/07/5654.htmlhttp://www.tkk7.com/SteelHand/comments/5654.htmlhttp://www.tkk7.com/SteelHand/archive/2005/06/07/5654.html#Feedback2http://www.tkk7.com/SteelHand/comments/commentRss/5654.htmlhttp://www.tkk7.com/SteelHand/services/trackbacks/5654.htmlW?.7? 动态生JavaScript

    问题

    你想要根据从应用模型获得的数据动态生JavaScript?/P>

    动作要领

    使用Struts 标签在你惌包含在HTML中的JavaScript 代码中渲染数据:

    <script language="JavaScript">
        
    function showMessage(  ) {
            alert( 
    "Hello, <bean:write name='myForm' property='name'/>!" );
        }

    </script>

     

    动作变化

    上述Ҏ产生了一个JavaScript 函数Q弹Z个消息框Q消息文本ؓ"Hello, name!" name的值是使用bean:write标签产生的。此Ҏ展示了用Struts 标签创徏JavaScript 和它们创建HTML一LҎ?/P>

    JSTL也可以按q种方式使用?/P>

    虽然q种Ҏ很明显,但是很奇怪很多h都在问这个问题。通常问题q可能是Q?我如何才能从Struts中调用HTML中的JavaScript 函数Q? 技术上Ԍ你ƈ不能从Struts调用一个HTML面中的JavaScript 函数。Struts 和JSP 技术都q行在服务器端。相反,JavaScript是在客L的浏览器中处理的。但是,通过q里所q的动态生JS的能力,基本上还是相当于所需的这个行为?/P>

    q个Ҏ的一个重要基是JSP的{换过E。JSP 面由JSP 声明Q标准JSP 标签 (比如jsp:useBean), 定制JSP 标签(比如Struts 和JSTP 标签), q行是表辑ּQ以及脚本小E序QscriptletsQ组成。除此之外的其他东西都是模板文本Q?A name=jakartastrutsckbk-CHP-3-ITERM-1548>template textQ?/EM>模板文本可以是Q何不会被JSP转换处理的内宏Vh们通常会认为模板文本就是HTML 标记Q但是它其实是JavaScript 或者其他非JSP 处理的文本。JSP 译器ƈ不关心模板文本采用何UŞ式。因此,你可以象在HTML元素中生文本一样容易地在JavaScript 函数中生文本?/P>

    如果你用JSP 来生良构的Qwell-formedQ?A name=jakartastrutsckbk-CHP-3-ITERM-1550>XHTML, 那么动态JavaScript 模版文本必须使用jsp:text元素和CDATA section的方式结合来指定。具体信息参见Hans Bergsten的ONJava 文章Q?A >http://www.onjava.com/pub/a/onjava/2004/04/21/JSP2part3.html?/P>

    q里的例子仅仅列Z很简单的使用场景。如果要讉K的模型数据需要用复杂的JavaScript数据l构Q比如,数组Q你可以使用q代标签Q比?A name=jakartastrutsckbk-CHP-3-ITERM-1552>logic:iterate?A name=jakartastrutsckbk-CHP-3-ITERM-1554>c:forEach来组装这些结构?/P>

    相关动作

    下一?.8或会使用q代标签来生客L的JavaScript 数组?/P>

    铁手 2005-06-07 12:32 发表评论
    ]]>
    《Struts in Action》还是需要修改一下了http://www.tkk7.com/SteelHand/archive/2005/06/06/5622.html铁手铁手Mon, 06 Jun 2005 09:35:00 GMThttp://www.tkk7.com/SteelHand/archive/2005/06/06/5622.htmlhttp://www.tkk7.com/SteelHand/comments/5622.htmlhttp://www.tkk7.com/SteelHand/archive/2005/06/06/5622.html#Feedback8http://www.tkk7.com/SteelHand/comments/commentRss/5622.htmlhttp://www.tkk7.com/SteelHand/services/trackbacks/5622.html 几天d来看Q倒是有不错误,包括错别字和译错误?br>
    觉得q样很不好,搞不好误人子弟。于是决定近日将光CҎ理,发一个完整半出来?br>
    感兴的Q可以关注我q里的相关信息。我在q里提供下蝲链接?br>


    铁手 2005-06-06 17:35 发表评论
    ]]>
    StrutsU籍之第2D:W?.6式: 从图像提交表?/title><link>http://www.tkk7.com/SteelHand/archive/2005/06/03/5506.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Fri, 03 Jun 2005 02:36:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/06/03/5506.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/5506.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/06/03/5506.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/5506.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/5506.html</trackback:ping><description><![CDATA[<H3>W?.6? 从图像提交表?/H3> <H4><A name=jakartastrutsckbk-CHP-3-SECT-6.1></A>问题</H4> <P>你想要用户能够通过点击一个不在HTML表单标签中的囑փ来提交表单?/P> <H4><A name=jakartastrutsckbk-CHP-3-SECT-6.2></A>动作要领</H4> <P>适应一个对JavaScript URL 的链接来提交表单Q?BR></P><BR> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">html:link </SPAN><SPAN style="COLOR: #ff0000">href</SPAN><SPAN style="COLOR: #0000ff">="javascript:document.myform.submit(  )"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">html:img </SPAN><SPAN style="COLOR: #ff0000">page</SPAN><SPAN style="COLOR: #0000ff">="/submit-form.gif"</SPAN><SPAN style="COLOR: #ff0000"> <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>               alt</SPAN><SPAN style="COLOR: #0000ff">="Submit"</SPAN><SPAN style="COLOR: #ff0000"> border</SPAN><SPAN style="COLOR: #0000ff">="0"</SPAN><SPAN style="COLOR: #0000ff">/></SPAN><SPAN style="COLOR: #000000"> <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">html:link</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV><BR> <P><A name=jakartastrutsckbk-CHP-3-SECT-6.3></A> </P> <H4>动作变化</H4> <P>Web 应用l常使用可点ȝ囑փ来提交表单而不是仅仅通过表单按钮。Struts <A name=jakartastrutsckbk-CHP-3-ITERM-1540></A><A name=jakartastrutsckbk-CHP-3-ITERM-1541></A><A name=jakartastrutsckbk-CHP-3-ITERM-1542></A>的html:image标签可以用来产生一个显C图像的HTML input type="image" 标签。但是,对于复杂?HTML 布局Qƈ不L能够图像嵌入在表单<form> . . . </form>标签之中。有些时候,一?HTML 面可能在页面的某一D可能有多个表单Q而提交页面的囑փ则在面的另一个区域。比如,工具条风格的囑փ按钮?/P> <P>上面的方法可以用于从表单之外的图像提交表单。所昄的图像嵌套在html:link标签中。该链接通过执行一行JavaScript来提交表单。在上面的代码中QJavaScript 提交名为MyForm 的表单。表单名U必d配struts-config.xml文g中所配置的action元素的name属性。下面是q种Ҏ产生的HTML 代码Q?/P> <P> </P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">a </SPAN><SPAN style="COLOR: #ff0000">href</SPAN><SPAN style="COLOR: #0000ff">="javascript:document.myform.submit(  )"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">img </SPAN><SPAN style="COLOR: #ff0000">src</SPAN><SPAN style="COLOR: #0000ff">="/myapp/struts-power.gif"</SPAN><SPAN style="COLOR: #ff0000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>         border</SPAN><SPAN style="COLOR: #0000ff">="0"</SPAN><SPAN style="COLOR: #ff0000"> alt</SPAN><SPAN style="COLOR: #0000ff">="Submit"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">a</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P> </P> <P>虽然你可以直接用上qHTML标记而不是Struts html标签Q如果那L话你失去那些标{所提供的特征。通过使用Struts tagQ你׃是必要指定context 名称Qƈ且你可以使图像名U和替换文本来自于资源束 (如果你需要的??/P> <P>另一个办法是使用html:img 标签的onclick属性:</P> <P> </P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">html:img </SPAN><SPAN style="COLOR: #ff0000">page</SPAN><SPAN style="COLOR: #0000ff">="/submit-form.gif"</SPAN><SPAN style="COLOR: #ff0000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>       onclick</SPAN><SPAN style="COLOR: #0000ff">="document.MyForm.submit( );"</SPAN><SPAN style="COLOR: #ff0000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>           alt</SPAN><SPAN style="COLOR: #0000ff">="Submit"</SPAN><SPAN style="COLOR: #ff0000"> border</SPAN><SPAN style="COLOR: #0000ff">="0"</SPAN><SPAN style="COLOR: #0000ff">/></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P> </P> <P>q种方式的缺ҎQ有些浏览器q不提供囑փ是可以点ȝ一些可视提C线索。因为图像嵌入到一个链接中Q大多数览器都会在改变鼠标指针以提C囑փ是可以点ȝ?/P> <TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#cccccc> <TBODY> <TR> <TD vAlign=top width="100%"> <P><FONT style="BACKGROUND-COLOR: #ffffff"><FONT color=#ff0000><EM><TT>如果你想要你的应用在览器禁止JavaScript</TT></EM><TT><EM>的情况下也能够进行,q应该在表单中的某处提供一个常规的提交按钮?/EM></TT></FONT></FONT></P></TD></TR></TBODY></TABLE> <P> </P> <H4>相关招式</H4> <P>W?.9式会描述如何在表单的action属性中指定的地方将表单提交到另外一个URL?/P> <P> </P><img src ="http://www.tkk7.com/SteelHand/aggbug/5506.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-06-03 10:36 <a href="http://www.tkk7.com/SteelHand/archive/2005/06/03/5506.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>StrutsU籍之第2D:W?.5式: 在JSTL循环中用烦引属?/title><link>http://www.tkk7.com/SteelHand/archive/2005/06/01/5413.html</link><dc:creator>铁手</dc:creator><author>铁手</author><pubDate>Wed, 01 Jun 2005 06:43:00 GMT</pubDate><guid>http://www.tkk7.com/SteelHand/archive/2005/06/01/5413.html</guid><wfw:comment>http://www.tkk7.com/SteelHand/comments/5413.html</wfw:comment><comments>http://www.tkk7.com/SteelHand/archive/2005/06/01/5413.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/SteelHand/comments/commentRss/5413.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/SteelHand/services/trackbacks/5413.html</trackback:ping><description><![CDATA[<H3>W?.5? 在JSTL循环中用烦引属?/H3> <H4>问题</H4> <P>你想要在在JSTL c:forEach循环而不是Struts logic:iterate循环中通过Struts html标签使用索引属性?/P> <H4>动作要领</H4> <P>Z创徏一个简单烦引属性的字段Q可使用bean:define标签@环计数暴露ؓ一个可用于q行时表辑ּ的脚本变量:</P> <P> </P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">c:forEach </SPAN><SPAN style="COLOR: #ff0000">var</SPAN><SPAN style="COLOR: #0000ff">="theItem"</SPAN><SPAN style="COLOR: #ff0000"> items</SPAN><SPAN style="COLOR: #0000ff">="${MyForm.myItems}"</SPAN><SPAN style="COLOR: #ff0000"> varStatus</SPAN><SPAN style="COLOR: #0000ff">="loopStatus"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">bean:define </SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="itemIndex"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">c:out </SPAN><SPAN style="COLOR: #ff0000">value</SPAN><SPAN style="COLOR: #0000ff">="${loopStatus.index}"</SPAN><SPAN style="COLOR: #0000ff">/></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">bean:define</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">br</SPAN><SPAN style="COLOR: #0000ff">/><</SPAN><SPAN style="COLOR: #800000">html:text </SPAN><SPAN style="COLOR: #ff0000">property</SPAN><SPAN style="COLOR: #0000ff">='<%="myItem["+itemIndex+"]"%>'/><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #ff0000"></c:forEach</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P> </P> <P>如果索引属性是一个嵌套的bean q且你用的是indexed="true" 属性,那么可以Struts logic:iterate标签替换为JSTL c:forEach:</P> <P> </P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">c:forEach </SPAN><SPAN style="COLOR: #ff0000">var</SPAN><SPAN style="COLOR: #0000ff">="theNestedItem"</SPAN><SPAN style="COLOR: #ff0000"> items</SPAN><SPAN style="COLOR: #0000ff">="${MyForm.myNestedItems}"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">br</SPAN><SPAN style="COLOR: #0000ff">/><</SPAN><SPAN style="COLOR: #800000">html:text </SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="theNestedItem"</SPAN><SPAN style="COLOR: #ff0000"> <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>              property</SPAN><SPAN style="COLOR: #0000ff">="nestedProperty"</SPAN><SPAN style="COLOR: #ff0000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>              indexed</SPAN><SPAN style="COLOR: #0000ff">="true"</SPAN><SPAN style="COLOR: #0000ff">/></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">c:forEach</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P> </P> <H4>动作变化</H4> <P>JSTL的c:forEach标签提供了一些额外的功能q且比logic:iterate更加易用。需要@环遍历的条目可以通过使用EL来指定。JSTL 标签允许寚w合的子集上进行更多的控制Qƈ且@环状态的l节也很Ҏ获得。然而,如同所有JSTL标签一P没有脚本变量被创建。我们在其他招式中所q,在处理烦引属性时Q不得不使用脚本变量。特别是如果你没有用struts-el标签库更是如此?/P> <P>bean:define标签从JSTL创徏的范围变量中创徏一个基本变量。这个bean:define标签Z取自value属性或者标{体的值创Z一个新的范围变量和对应的脚本变量。后一U方式在JSTL和Struts标签之间建立了一个桥。在q一招中Qbean:define标签用于创徏一个包含可用于讉K索引属性的索引的变量。你可以在第3.4式中的选择喜好颜色的标但中使用q种技术?/P> <P> </P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">What are your three favorite colors:<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">c:forEach </SPAN><SPAN style="COLOR: #ff0000">var</SPAN><SPAN style="COLOR: #0000ff">="theColor"</SPAN><SPAN style="COLOR: #ff0000"> items</SPAN><SPAN style="COLOR: #0000ff">="${FavoritesForm.color}"</SPAN><SPAN style="COLOR: #ff0000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>     varStatus</SPAN><SPAN style="COLOR: #0000ff">="loopStatus"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">bean:define </SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="ctr"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">c:out </SPAN><SPAN style="COLOR: #ff0000">value</SPAN><SPAN style="COLOR: #0000ff">="${loopStatus.index}"</SPAN><SPAN style="COLOR: #0000ff">/></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">bean:define</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">br</SPAN><SPAN style="COLOR: #0000ff">/><</SPAN><SPAN style="COLOR: #800000">html:text </SPAN><SPAN style="COLOR: #ff0000">property</SPAN><SPAN style="COLOR: #0000ff">='<%="color["+ctr+"]"%>'/><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #ff0000"></c:forEach</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P> </P> <P>ҎW?.4式,你可以用Struts-El标签来消除scriptletQ?/P> <P> </P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">What are your three favorite colors:<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">c:forEach </SPAN><SPAN style="COLOR: #ff0000">var</SPAN><SPAN style="COLOR: #0000ff">="theColor"</SPAN><SPAN style="COLOR: #ff0000"> items</SPAN><SPAN style="COLOR: #0000ff">="${FavoritesForm.color}"</SPAN><SPAN style="COLOR: #ff0000"> <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>varStatus</SPAN><SPAN style="COLOR: #0000ff">="loopStatus"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">br</SPAN><SPAN style="COLOR: #0000ff">/><</SPAN><SPAN style="COLOR: #800000">html-el:text </SPAN><SPAN style="COLOR: #ff0000">property</SPAN><SPAN style="COLOR: #0000ff">='color[${ctr}]'/><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #ff0000"></c:forEach</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P> </P> <P>如果需要ؓ一个对象的嵌套属性创Z个HTML 输入字段Q而该对象是一个烦引属性,那么请在Struts html 标签中指定indexed="true" 属性。indexed属性的用法在用JSTL c:forEach循环和用logic:iterate循环时是一L。下面是q种技术如何用在W?.4式中的表单的喜好链接部分Q?/P> <P> </P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">What are your favorite links?<BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">table</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">tr</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">th</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">Name</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">th</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">th</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">URL</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">th</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">tr</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">c:forEach </SPAN><SPAN style="COLOR: #ff0000">var</SPAN><SPAN style="COLOR: #0000ff">="webLink"</SPAN><SPAN style="COLOR: #ff0000"> items</SPAN><SPAN style="COLOR: #0000ff">="${FavoritesForm.webLinks}"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">tr</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>                </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">html:text </SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="webLink"</SPAN><SPAN style="COLOR: #ff0000"> <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>                       property</SPAN><SPAN style="COLOR: #0000ff">="name"</SPAN><SPAN style="COLOR: #ff0000"> indexed</SPAN><SPAN style="COLOR: #0000ff">="true"</SPAN><SPAN style="COLOR: #0000ff">/></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>                </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">html:text </SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="webLink"</SPAN><SPAN style="COLOR: #ff0000"> <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>                       property</SPAN><SPAN style="COLOR: #0000ff">="url"</SPAN><SPAN style="COLOR: #ff0000"> indexed</SPAN><SPAN style="COLOR: #0000ff">="true"</SPAN><SPAN style="COLOR: #0000ff">/></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">tr</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">c:forEach</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">table</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P> </P> <P>渲染后的索引D正确产生Q哪怕是使用了begin, end, 和step属性来控制循环。下面的c:forEach用法演示了如何ؓ集合的第1个和W?个元素生输入字D:</P> <P> </P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">c:forEach </SPAN><SPAN style="COLOR: #ff0000">var</SPAN><SPAN style="COLOR: #0000ff">="webLink"</SPAN><SPAN style="COLOR: #ff0000"> items</SPAN><SPAN style="COLOR: #0000ff">="${FavoritesForm.webLinks}"</SPAN><SPAN style="COLOR: #ff0000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>         begin</SPAN><SPAN style="COLOR: #0000ff">="1"</SPAN><SPAN style="COLOR: #ff0000"> end</SPAN><SPAN style="COLOR: #0000ff">="3"</SPAN><SPAN style="COLOR: #ff0000"> step</SPAN><SPAN style="COLOR: #0000ff">="2"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">tr</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">html:text </SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="webLink"</SPAN><SPAN style="COLOR: #ff0000"> property</SPAN><SPAN style="COLOR: #0000ff">="name"</SPAN><SPAN style="COLOR: #ff0000"> indexed</SPAN><SPAN style="COLOR: #0000ff">="true"</SPAN><SPAN style="COLOR: #0000ff">/></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">html:text </SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="webLink"</SPAN><SPAN style="COLOR: #ff0000"> property</SPAN><SPAN style="COLOR: #0000ff">="url"</SPAN><SPAN style="COLOR: #ff0000"> indexed</SPAN><SPAN style="COLOR: #0000ff">="true"</SPAN><SPAN style="COLOR: #0000ff">/></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">tr</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">c:forEach</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P> </P> <P>q将产生下面的HTML:</P> <P> </P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">tr</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">><</SPAN><SPAN style="COLOR: #800000">input </SPAN><SPAN style="COLOR: #ff0000">type</SPAN><SPAN style="COLOR: #0000ff">="text"</SPAN><SPAN style="COLOR: #ff0000"> name</SPAN><SPAN style="COLOR: #0000ff">="webLink[1].name"</SPAN><SPAN style="COLOR: #ff0000"> value</SPAN><SPAN style="COLOR: #0000ff">=""</SPAN><SPAN style="COLOR: #0000ff">></</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">><</SPAN><SPAN style="COLOR: #800000">input </SPAN><SPAN style="COLOR: #ff0000">type</SPAN><SPAN style="COLOR: #0000ff">="text"</SPAN><SPAN style="COLOR: #ff0000"> name</SPAN><SPAN style="COLOR: #0000ff">="webLink[1].url"</SPAN><SPAN style="COLOR: #ff0000"> value</SPAN><SPAN style="COLOR: #0000ff">=""</SPAN><SPAN style="COLOR: #0000ff">></</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">tr</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>         <BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">tr</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">><</SPAN><SPAN style="COLOR: #800000">input </SPAN><SPAN style="COLOR: #ff0000">type</SPAN><SPAN style="COLOR: #0000ff">="text"</SPAN><SPAN style="COLOR: #ff0000"> name</SPAN><SPAN style="COLOR: #0000ff">="webLink[3].name"</SPAN><SPAN style="COLOR: #ff0000"> value</SPAN><SPAN style="COLOR: #0000ff">=""</SPAN><SPAN style="COLOR: #0000ff">></</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">><</SPAN><SPAN style="COLOR: #800000">input </SPAN><SPAN style="COLOR: #ff0000">type</SPAN><SPAN style="COLOR: #0000ff">="text"</SPAN><SPAN style="COLOR: #ff0000"> name</SPAN><SPAN style="COLOR: #0000ff">="webLink[3].url"</SPAN><SPAN style="COLOR: #ff0000"> value</SPAN><SPAN style="COLOR: #0000ff">=""</SPAN><SPAN style="COLOR: #0000ff">></</SPAN><SPAN style="COLOR: #800000">td</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">tr</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P> </P> <P>Z在@环中渲染动态数据以供显C,JSTL 工作的很好,q且比对赢得Struts 标签更易使用。你可以看到QJSTL 在访问烦引属性方面比Struts 标签支持的更好。例如,下面的代码就展示了喜好颜色可以如何显C:</P> <P> </P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">c:forEach </SPAN><SPAN style="COLOR: #ff0000">var</SPAN><SPAN style="COLOR: #0000ff">="color"</SPAN><SPAN style="COLOR: #ff0000"> items</SPAN><SPAN style="COLOR: #0000ff">="${favs.color}"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">li</SPAN><SPAN style="COLOR: #0000ff">><</SPAN><SPAN style="COLOR: #800000">c:out </SPAN><SPAN style="COLOR: #ff0000">value</SPAN><SPAN style="COLOR: #0000ff">="${color}"</SPAN><SPAN style="COLOR: #0000ff">/></</SPAN><SPAN style="COLOR: #800000">li</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">c:forEach</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P> </P> <H4>相关招式</H4> <P>W?.4式演CZ索引属性的cM用法?/P> <P>你可以参考JSTL 的相x档和信息Q以及书c。JSTL规范参见<A >http://java.sun.com/jsp/jstl</A>.</P> <P> </P><img src ="http://www.tkk7.com/SteelHand/aggbug/5413.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/SteelHand/" target="_blank">铁手</a> 2005-06-01 14:43 <a href="http://www.tkk7.com/SteelHand/archive/2005/06/01/5413.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>лǵվܻԴȤ</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> վ֩ģ壺 <a href="http://kdp44.com" target="_blank">޻ɫ߹ۿ</a>| <a href="http://yaboxxx125.com" target="_blank">AV뾫ƷˮţӰ</a>| <a href="http://8xcb.com" target="_blank">þúݺѹۿ</a>| <a href="http://pohezi.com" target="_blank">þƷAV鶹Ƭ</a>| <a href="http://thinkchating.com" target="_blank">Բٸ</a>| <a href="http://19933k.com" target="_blank">97Ƶѹۿ</a>| <a href="http://apguangyu.com" target="_blank">þþƷѴƬƬ </a>| <a href="http://cao9999.com" target="_blank">޷ŮһŶ</a>| <a href="http://222dv.com" target="_blank">޹ƷߵӰ</a>| <a href="http://7a37.com" target="_blank">?V?V˵ </a>| <a href="http://xxxxnii.com" target="_blank">ַ߹ۿ</a>| <a href="http://jhc2go.com" target="_blank">þ޾ƷĻ</a>| <a href="http://ddm88888.com" target="_blank">lƷ߹ۿ</a>| <a href="http://asdfghjklzxcv.com" target="_blank">hsѸ߹ۿ</a>| <a href="http://wwkk3.com" target="_blank">ѿŮˬ</a>| <a href="http://szybzc.com" target="_blank">վѹۿ޹ </a>| <a href="http://225ck.com" target="_blank">޹ۺ</a>| <a href="http://565636.com" target="_blank">VAĻëƬ</a>| <a href="http://556228.com" target="_blank">ĻӰƬ߹ۿ </a>| <a href="http://juguanghr.com" target="_blank">ձVAҹӰԺ</a>| <a href="http://hhgcnet.com" target="_blank">ԲƵ </a>| <a href="http://jst-hosp.com" target="_blank">޸ߵӰ</a>| <a href="http://044242.com" target="_blank">ޱһ</a>| <a href="http://0415ss.com" target="_blank">ݺɫúݺݺۺ</a>| <a href="http://732r.com" target="_blank">Ʒվ</a>| <a href="http://boyipark.com" target="_blank">91ƬýѰӣ</a>| <a href="http://kingrel.com" target="_blank">ۺavһ</a>| <a href="http://ulihix.com" target="_blank">˳ѹۿ</a>| <a href="http://www84847.com" target="_blank">AVƬ߲</a>| <a href="http://0101av.com" target="_blank">99Ƶѹۿ</a>| <a href="http://mtripmall.com" target="_blank">ҹ޾Ʒ</a>| <a href="http://lyaa17.com" target="_blank">һػػƵĴƬ</a>| <a href="http://oakuu.com" target="_blank">˳ŮƬ߲</a>| <a href="http://www-533999.com" target="_blank">ŷպۺ</a>| <a href="http://16688shop.com" target="_blank">ྫƷxxxx</a>| <a href="http://yy885.com" target="_blank">պ޹Ƶ</a>| <a href="http://tjbdyx.com" target="_blank">պƷרձ </a>| <a href="http://msjdyd.com" target="_blank">97߹ۿƵ</a>| <a href="http://gzltchem.com" target="_blank">߿Ƭ˳Ӿ</a>| <a href="http://km9c.com" target="_blank">Ѹվ߹ۿ</a>| <a href="http://www-456446.com" target="_blank">߹ۿվ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>