
Struts 1.3
文章平均质量分 77
okcomputer2008
这个作者很懒,什么都没留下…
展开
-
谈谈Struts的ActionForm之隐性绑定
<html:checkbox property="booleanProperty" /> 用来显示单个的选择框,通过对该标签初始化的操作,可以看出许多隐藏在Struts框架“背后”的故事。假定流程是这样:1. Jsp页面显示所有用户的列表,只包含姓名,想看某用户的详细信息,就要点击这个用户的名字,通过hyperlink或其他方式传递一个用户ID到Action类中。...2009-05-21 22:01:00 · 140 阅读 · 0 评论 -
Struts1.3 之流程框架概述3
<html:errors property=”firstName”/>Output the errors associated with this form with html:errors tag. ActionForms have a validate method that can return ActionErrors. <bean:message...2009-05-27 23:54:58 · 145 阅读 · 0 评论 -
Struts1.3 之流程框架概述2
3. ActionForm类ActionForms represents request data coming from the browser. ActionForms are used to populate HTML forms to display to end users and to collect data from HTML forms. Create JavaBea...2009-05-27 23:50:58 · 148 阅读 · 0 评论 -
Struts1.3 之流程框架概述1
1. Action类Actions respond to requests. 它收到browser用户请求(这个请求包含一些列信息),并最终返回一个ActionForward对象名为success作为output view. That output view will be a plain old JSP. import javax.servlet.http.HttpServ...2009-05-27 23:45:40 · 165 阅读 · 0 评论 -
EL表达式
The primary feature of JSP 2.0 is its support for an expression language(EL). An expression language makes it possible to easily access application data stored in javabeans components. Active and ...2009-05-27 23:18:30 · 121 阅读 · 0 评论 -
JSTL 1.2总结
JSTL: Jsp Standard Tag Libraries JSTL is a collection of custom tags libraries. It provides common functionality that many web applications need. JSTL provides support for presentation logic (core...2009-05-27 23:12:03 · 459 阅读 · 0 评论 -
Struts1.3 Tag总结之----Logic:iterate
<logic:iterate />Iterates over a collection, enumerator, iterator, map, or array. It evaluates its body for each item in the collection. collection是对象的一个属性(在request scope中存在的对象 tagInfo 的 属...2009-05-27 23:02:25 · 119 阅读 · 0 评论 -
Struts1.3 Tag总结之----Logic:messagesPresent
<logic:messagesPresent property="property1" message="true"> Message:property1 存在 </logic:messagesPresent>我们知道,在Action类中我们可以通过将一个ActionErrors或ActionMessages对象添加进request scopesaveMessage...2009-05-27 22:56:42 · 277 阅读 · 0 评论 -
Struts1.3 Tag总结之----Select
选择标签: 必须是select与其他标签如:option,options和optionsCollection配合使用 <html:select property="selectedCareers" multiple="true"> <html:optionsCollection name="tagInfo" proper...2009-05-27 22:43:19 · 129 阅读 · 0 评论 -
Struts1.3 Tag总结之----MultiBox
Multibox标签的用法:<logic:iterate id="hobby" name="tagInfo" property="hobbies"> <html:multibox property="selectedHobbies"> <bean:write name="hobby"/&g2009-05-27 22:32:14 · 157 阅读 · 0 评论 -
Struts1.3 Tag总结之----Messages vs. Errors
信息标签 <html:messages />Displays a set of messages prepared by a business logic component and stored as an ActionMessages object, ActionErrors object, a String, or a String array in any scope. I...2009-05-27 22:25:12 · 158 阅读 · 0 评论 -
Struts1.3 Tag总结之----Link
超链接标签 <html:link/>There are 4 options for rendering the URL of a hyperlink.href, action, forward, page <html:link forward="global_forward001">Link1</html:link>forward属性表示去s...2009-05-27 22:15:04 · 144 阅读 · 0 评论 -
Struts1.3 Tag总结之----Button
几种按钮类型的标签 <html:button property="normalButton" value="只是一个普通按钮" /> 只是一个普通按钮,当点击以后不能产生任何作用。要产生作用的话,必须调用事件,如:onclick="form.submit()" 这样也可以是表单提交 <html:submit value="提交"/>2009-05-27 22:08:29 · 184 阅读 · 0 评论 -
谈谈Struts的ActionForm之隐性绑定(con.)
而在struts-config.xml里面,就不要再设置attribute了<action path="/tagUse" type="strutsTutorial.PrepareTagAction" name="tagHanderForm"attribute="whatever"> 总结来说就一句话,ActionForm与JSP...2009-05-21 22:02:03 · 116 阅读 · 0 评论 -
Struts1.3 之流程框架概述4
7. Exception Handling with StrutsAn exception handler allows you to declaratively handle an exception in the struts-config.xml file by associating an exception to a user friendly message and a user ...2009-05-27 23:55:51 · 132 阅读 · 0 评论