Struts2
文章平均质量分 68
getdate
getdate2006@163.com
展开
-
去除 struts2 标签中的自动生成的布局样式
<br /> <br />struts2中包含了一些默认的模版文件($ {struts-core-2.06.jar}/template),其中有ajax/simple/xhtml等.<br /><br /><br />查看struts.properties或$ {struts-core-2.06.jar}/org/apache/struts2/default.properties文件,其中有如下配置:<br />struts.ui.theme=xhtml<br />struts.ui.templateDir转载 2011-01-24 14:57:00 · 2284 阅读 · 0 评论 -
struts2 过滤器
如果Struts 2 版本 小于 2.1.3 则相关的过滤器为:FilterDispatcher Example (web.xml)struts2org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFi原创 2011-05-16 16:48:00 · 1420 阅读 · 0 评论 -
Struts2 数据 标签 之 Bean Tag
Bean Tag The Bean tag is a generic tag that is used to instantiates a class that confirms to the JavaBeans specification. This tag has a body which can contain a number of Param elements to set a转载 2011-06-13 14:11:00 · 707 阅读 · 0 评论 -
Struts2 数据 标签 之 Property Tag
Property Tag The property tag is a generic tag that is used to get the property of a value, which will default to the top of the stack if none is specified. Add the following code snippet int转载 2011-06-13 14:39:00 · 1415 阅读 · 0 评论 -
Struts2 数据 标签 之 Text Tag
Text Tag The text tag is a generic tag that is used to render a I18n text message. Follow one of the three steps: 1. Keep the message to be displayed in a resource bundle with the same name a转载 2011-06-13 14:35:00 · 1702 阅读 · 0 评论 -
Struts2 数据 标签 之 Include Tag
Include TagThe include tag is a generic tag that is used to include a servlets output (result of servlet or a JSP page) to the current page. Add the following code snippet into the struts.xml转载 2011-06-13 14:19:00 · 933 阅读 · 0 评论 -
Struts2 数据 标签 之 Date Tag
Date TagThe date tag allows to format a Date in a quick and easy way. User can specify a custom format (eg. "dd/MM/yyyy hh:mm"), can generate easy readable notations (like "in 2 hours, 14 minutes"转载 2011-06-13 14:13:00 · 1200 阅读 · 0 评论 -
Struts2 数据 标签 之 Action Tag
Action Tag The action tag is a generic tag that is used to call actions directly from a JSP page by specifying the action name and an optional namespace. The body content of the tag is used to ren转载 2011-06-13 14:05:00 · 997 阅读 · 0 评论 -
Struts2 控制 标签 之 Subset Tag
Subset TagIn this section, we are going to describe the subset tag using the count parameter. The count parameter indicates the number of entries to be set in the resulting subset iterator.Add转载 2011-06-13 13:47:00 · 1101 阅读 · 0 评论 -
Struts2 控制 标签 之 Merge Tag
Merge Tag In this section, we are going to describe the merge tag. The merge tag is a generic tag that is used to merge iterators. The successive call to the merge iterator causes each merge itera转载 2011-06-13 13:25:00 · 775 阅读 · 0 评论 -
Struts2 控制 标签 之 Iterator Tag
Iterator Tag In this section, we are going to describe the Iterator tag. Iterator tag is used to iterate over a value. An iterable value can be either of: java.util.Collection, java.util.Iterator.转载 2011-06-13 13:21:00 · 607 阅读 · 0 评论 -
Struts2 控制 标签 之 Generator Tag
In this section, we are going to describe the generator tag. The generator tag is a generic tag that is used to generate iterators based on different attributes passed. Here we will not pass any attri转载 2011-06-13 13:16:00 · 692 阅读 · 0 评论 -
Struts2 控制 标签 之 if elseif else
创建 JSP 页面 IfControlTag.jsp Set a property technologyName with a value Java as IfControlTag.jsp@ taglib prefix="s" uri="/struts-tags" %> Struts 2 Control Tag Example "te转载 2011-06-13 12:13:00 · 928 阅读 · 0 评论 -
struts2.x 与 struts1.x 调用 spring 层中的 方法 对比
总结下来以备忘记,也希望对其他网友有所帮助。 在struts2 中 可以直接通过get 方法来得到spring 接口的实现对象,但要注意的是,接口对象的变量名称要与 applicationContext 配置文件中指定的 ID 的变量名称一致,这样在struts2的a原创 2011-08-17 16:41:52 · 684 阅读 · 0 评论