1.struts2.x povides features to reduce xml configuration via intelligent defaults,utilizes
annotations and provides conventions over configuration.Actions are now POJOs which increases
testability and reduces coupling in the framework, and HTML form field data is converted to proper
types for the action to use.
2.Struts2 is a pull-MVC (or MVC2)framework; this is slightly different from a traditional MVC
framework in that the action takes the role of the model rather than the controller, although there
is some overlap.
3.The struts.properties configuration file provides a mechanism to change the default behavior of
the framework.
4.A familiar technique for most web developers is to place the object that needs to be accessed in
the HttpServletRequest or the HttpSession. This can be achieved by implementing the “aware”
interface (letting the dependency injection to do its work) and then setting the object to be
accessed under the required name.
5.The value stack is exactly what it says it is – a stack of objects. OGNL stands for Object Graph
Navigational Language, and provides the unified way to access objects within the value stack.
6.
<action name=”*/*” method=”{2}”
class=”com.infoq.actions.{1}Action”>
<result type=”redirect”>/{1}/view.action</result>
<result name=”view”>/{1}/view.jsp</result>
<result name=”input”>/{1}/edit.jsp</result>
<result name=”home”>/{1}/home.jsp</result>
</action>
The action will need to extend the ActionSupport class (providing validation and error message
handling implementations) and implement the ModelDriven and Preparable interfaces. The interceptor
stack along with the two interfaces is the key to making the implementation easy, so let’s
take a look at those in more detail.
也可分开来定义:
<action name="List" class="tutorial.action.BookAction" method="list">
<result>List.jsp</result>
</action>
//list是BookAction中的一个方法.
7.上传文件时要用到
commons-fileupload-1.2.jar
commons-io-1.1.jar
分享到:
相关推荐
2. Autodesk_FBX_Review_Win_64bit.exe:这是FBX Review的主要可执行程序,安装后可以在Windows系统上运行,打开并查看FBX文件。 在实际应用中,FBX Review支持的功能包括但不限于: - **模型预览**:显示3D模型的...
Solutions_Review_Business_Intelligence_Buyers_Guide_VI27.pdf
42 Review_day7
24 Review_Day04
15 Review_Day03
46 Review_Day8
58 Review_day10
Autodesk FBX Review是一款由Autodesk公司开发的专业三维模型预览和审查工具,主要用于帮助艺术家、设计师和开发者在不启动完整三维软件的情况下查看和检查FBX格式的模型数据。FBX(Filmbox)是一种跨平台的数据交换...
Review1_教学设计.ppt
● review_id (string): The unique ID of the review. ●review_id(字符串):评论的唯一ID。 ● product_id (string): The unique Product ID the review pertains to. ●product_id(字符串):审核所属的...
Keras用IMDB数据源...# because 0, 1 and 2 are reserved indices for "padding", "start of sequence", and "unknown". decoded_review = ' '.join([reverse_word_index.get(i - 3, '?') for i in train_data[0]])
yelp_academic_dataset_business.json+yelp_academic_dataset_review.json+yelp_academic_dataset_user.json文件
25 Review_week_2
2. It puts forward efficiently ideas to dear with____. 3. It makes a brief review of____, and asserts that____. 4. The drawing vividly illustrates the old saying. 5. Let me make a persuasive ...
标题中的"review_of_final_exam.rar_ssd2_ssd2 exam_ssd2 final_ssd2 final ex"似乎是指一个关于SSD2(可能是课程代码或特定主题的缩写)的最终考试复习资料的压缩包,其中包含了对考试的详细回顾。描述中的"SSD2 ...
首先,"CrystalC_REVS" 是该软件的核心部分,其全称可能为 "Crystal Code Review and Visualization System",它集成了代码审查和可视化两大功能。"ProPlus" 版本则意味着这是一款专业增强版,提供更全面的特性和...
SmartPlant Review是一个可视化的环境,它用于交互式查看3D模型,当维护一个主题的设计或施工的技术分析时。 SmartPlant审查范围-管理组织中的项目活动,包括具有复杂的地理分布结构。 一个系统可以用于流程...
Review Assistant 3.6.435.0破解版
Solutions_Review_Business_Intelligence_Buyers_Guide_VI27
标题 "easy_install.exe review board" 暗示我们讨论的是Python的一个包管理工具,Easy Install,以及它与Review Board的关系。Easy Install是Python标准库的一部分,用于安装和管理Python的扩展模块,它通过执行`ez...