
strusts2
文章平均质量分 53
yaozuodaoforfly
这个作者很懒,什么都没留下…
展开
-
struts-web配置
<?xml version="1.0" encoding="UTF-8"?><web-app version="2.5"> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-fil原创 2014-06-19 10:19:32 · 106 阅读 · 0 评论 -
AliasInterceptor 总结
The aim of this Interceptor is to alias a named parameter to a different named parameter. By acting as the glue between actions sharing similiar parameters (but with different names), it can help gr...原创 2014-04-17 20:46:49 · 114 阅读 · 0 评论 -
ExceptionMappingInterceptor 总结
This interceptor forms the core functionality of the exception handling feature. Exception handling allows you to map an exception to a result code, just as if the action returned a result code inste...原创 2014-04-17 20:50:48 · 597 阅读 · 0 评论 -
ServletConfigInterceptor 总结
An interceptor which sets action properties based on the interfaces an action implements. For example, if the action implements ParameterAware then the action context's parameter map will be set on ...原创 2014-04-21 20:23:52 · 155 阅读 · 0 评论 -
ChainingInterceptor
An interceptor that copies all the properties of every object in the value stack to the currently executing object, except for any object that implementsUnchainable. A collection of optional include...原创 2014-04-21 20:50:48 · 101 阅读 · 0 评论 -
ScopedModelDrivenInterceptor
An interceptor that enables scoped model-driven actions.This interceptor only activates on actions that implement the ScopedModelDriven interface. If detected, it will retrieve the model class from...原创 2014-04-21 21:01:21 · 129 阅读 · 0 评论 -
FileUploadInterceptor
Interceptor that is based off of MultiPartRequestWrapper, which is automatically applied for any request that includes a file. It adds the following parameters, where [File Name] is the name given to...原创 2014-04-21 21:19:43 · 297 阅读 · 0 评论 -
StaticParametersInterceptor
This interceptor populates the action with the static parameters defined in the action configuration. If the action implements Parameterizable, a map of the static parameters will be also be passed d...原创 2014-04-22 19:14:54 · 128 阅读 · 0 评论 -
StrutsResultSupport
A base class for all Struts action execution results. The "location" param is the default parameter, meaning the most common usage of this result would be:This class provides two common parameters ...原创 2014-04-22 19:50:08 · 198 阅读 · 0 评论 -
Wildcard-5
Advanced WildcardsFrom 2.1.9+ regular expressions can be defined defined in the action name. To use this form of wild card, the following constants must be set:<constant name="struts.enab...原创 2014-06-27 11:39:33 · 125 阅读 · 0 评论 -
Wildcard-6
The regular expression can also be in the form {FIELD_NAME:REGULAR_EXPRESSION}. The regular expression is a normal Java regular expression. For example:<package name="books" extends="struts...原创 2014-06-27 11:39:19 · 129 阅读 · 0 评论 -
package配置
abstract 标识这个package的定义是一个抽象定义,也就是允许他仅包含声明式的定义,而不需要在package定义中包含action的定义。 extends a,b,c通过使用extends,你可以指定本package继承另外一个package的所有的配置。当某个package继承了另外一个package的所有配置,那么你就无需对父package中已经声明过的配置定义做再...原创 2014-06-20 15:50:05 · 335 阅读 · 0 评论 -
package配置 Global Results
Global ResultsMost often, results are nested with the action element. But some results apply to multiple actions. In a secure application, a client might try to access a page without being authoriz...原创 2014-06-20 16:43:49 · 147 阅读 · 0 评论 -
RegexPatternMatcher
public class RegexPatternMatcherextends Objectimplements PatternMatcher<RegexPatternMatcherExpression>Allows regular expressions to be used in action names. The regular expressions can be...原创 2014-06-24 19:34:35 · 204 阅读 · 0 评论 -
Wildcards
As an application grows in size, so will the number of action mappings. Wildcards can be used to combine similar mappings into one more generic mapping.The best way to explain wildcards is to sh...原创 2014-06-24 20:14:06 · 181 阅读 · 0 评论 -
Wildcard-2
Wildcard patterns can contain one or more of the following special tokens:*Matches zero or more characters excluding the slash ('/') character.**Matches zero or more characters includin...原创 2014-06-24 20:14:53 · 130 阅读 · 0 评论 -
Wildcard-3
Parameters in namespacesFrom Struts 2.1+ namespace patterns can be extracted as request parameters and bound to the action. To enable this feature, set the following constant in struts.xml:&l...原创 2014-06-24 20:15:24 · 115 阅读 · 0 评论 -
Wildcard-4
Parameters after the action nameTo use parameters in the URL, after the action name, make sure this is set:<constant name="struts.enable.SlashesInActionNames" value="true"/><consta...原创 2014-06-24 20:15:55 · 117 阅读 · 0 评论 -
struts 动态方法调用
<constant name="struts.enable.DynamicMethodInvocation" value="true"></constant> /project/chartInfo!getDevelopProgress.action原创 2014-06-27 10:22:53 · 108 阅读 · 0 评论 -
strusts 常量配置
struts.multipart.maxSize 文件上传大小原创 2014-04-24 20:20:40 · 125 阅读 · 0 评论