- 博客(18)
- 问答 (1)
- 收藏
- 关注
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
130
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
141
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
146
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
160
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
118
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
451
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
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
275
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
125
Struts1.3 Tag总结之----MultiBox
Multibox标签的用法:<logic:iterate id="hobby" name="tagInfo" property="hobbies"> <html:multibox property="selectedHobbies"> <bean:write name="hobby"/&g
2009-05-27 22:32:14
155
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
156
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
143
Struts1.3 Tag总结之----Button
几种按钮类型的标签 <html:button property="normalButton" value="只是一个普通按钮" /> 只是一个普通按钮,当点击以后不能产生任何作用。要产生作用的话,必须调用事件,如:onclick="form.submit()" 这样也可以是表单提交 <html:submit value="提交"/>
2009-05-27 22:08:29
183
JPA本地查询(Native Query)的总结3
最后一种映射类型,就是实体与标量值的组合 @SqlResultSetMapping ( name="ReturnOrderListWithPartEntityPartScalarType", entities= { @EntityResult ( ...
2009-05-27 18:08:51
471
JPA本地查询(Native Query)的总结2
OK,现在对同一个查询,再把结果集全部映射进实体对象。 首先@NamedNativeQueries( { @NamedNativeQuery( name="ReturnOrderListWithFullEntityType", query="select o.id as order_id,o.creat...
2009-05-27 18:07:56
472
JPA本地查询(Native Query)的总结1
JPA的本地查询(native query) JPA支持本地查询,所谓本地查询,就是使用原生的sql语句(根据数据库的不同,在sql的语法或结构方面可能有所区别)进行查询数据库的操作。 本地查询主要使用EntityManager接口里的方法:public interface EntityManager { public void persist(Object entity)...
2009-05-27 18:06:13
1497
谈谈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
谈谈Struts的ActionForm之隐性绑定
<html:checkbox property="booleanProperty" /> 用来显示单个的选择框,通过对该标签初始化的操作,可以看出许多隐藏在Struts框架“背后”的故事。假定流程是这样:1. Jsp页面显示所有用户的列表,只包含姓名,想看某用户的详细信息,就要点击这个用户的名字,通过hyperlink或其他方式传递一个用户ID到Action类中。...
2009-05-21 22:01:00
138
空空如也
Struts的 html:img 标签(问题表述清楚)
2009-05-20
TA创建的收藏夹 TA关注的收藏夹
TA关注的人