资源简介
xwork2.0.4源代码,通过myeclipse的svn下来的,放心使用。
建议自己从xwork的官网下载all版本,上面有包含源代码。
代码片段和文件信息
/*
* Copyright (c) 2002-2006 by OpenSymphony
* All rights reserved.
*/
package com.opensymphony.xwork2;
/**
* All actions may implement this interface which exposes
* the execute() method. However as of XWork 1.1 this is
* not required and is only here to assist users. You are
* free to create POJOs that honor the same contract
* defined by this interface without actually implementing
* the interface.
*/
public interface Action {
/**
* The action execution was successful. Show result
* view to the end user.
*/
public static final String SUCCESS = “success“;
/**
* The action execution was successful but do not
* show a view. This is useful for actions that are
* handling the view in another fashion like redirect.
*/
public static final String NONE = “none“;
/**
* The action execution was a failure.
* Show an error view possibly asking the
* user to retry entering data.
*/
public static final String ERROR = “error“;
/**
* The action execution require more input
* in order to succeed.
* This result is typically used if a form
* handling action has been executed so as
* to provide defaults for a form. The
* form associated with the handler should be
* shown to the end user.
*
* This result is also used if the given input
* params are invalid meaning the user
* should try providing input again.
*/
public static final String INPUT = “input“;
/**
* The action could not execute since the
* user most was not logged in. The login view
* should be shown.
*/
public static final String LOGIN = “login“;
/**
* Where the logic of the action is executed.
*
* @return a string representing the logical result of the execution.
* See constants in this interface for a list of standard result values.
* @throws Exception thrown if a system level exception occurs.
* Application level exceptions should be handled by returning
* an error value such as Action.ERROR.
*/
public String execute() throws Exception;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
-rw-r--r-- 15911 2007-03-31 18:32 src\java\com\opensymphony\xwork2\DefaultActionInvocation.java
-rw-r--r-- 797 2006-12-13 07:17 src\java\com\opensymphony\xwork2\ActionEventListener.java
-rw-r--r-- 3931 2006-09-30 07:34 src\java\com\opensymphony\xwork2\DefaultTextProvider.java
-rw-r--r-- 1868 2006-12-01 02:33 src\java\com\opensymphony\xwork2\TestNGXWorkTestCase.java
-rw-r--r-- 627 2006-07-10 02:30 src\java\com\opensymphony\xwork2\XWorkMessages.java
-rw-r--r-- 15309 2007-05-18 15:11 src\java\com\opensymphony\xwork2\validator\AnnotationActionValidatorManager.java
-rw-r--r-- 14647 2007-02-16 11:19 src\java\com\opensymphony\xwork2\validator\DefaultActionValidatorManager.java
-rw-r--r-- 3048 2007-02-16 13:00 src\java\com\opensymphony\xwork2\validator\ActionValidatorManager.java
-rw-r--r-- 681 2006-07-10 02:30 src\java\com\opensymphony\xwork2\validator\FieldValidator.java
-rw-r--r-- 5741 2007-04-04 17:06 src\java\com\opensymphony\xwork2\validator\ValidationInterceptor.java
-rw-r--r-- 2933 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\RequiredFieldValidator.java
-rw-r--r-- 3411 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\RequiredStringValidator.java
-rw-r--r-- 3321 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\Fieldex
-rw-r--r-- 2674 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\CustomValidator.java
-rw-r--r-- 2902 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\UrlValidator.java
-rw-r--r-- 36 2006-11-23 21:33 src\java\com\opensymphony\xwork2\validator\annotations\package.html
-rw-r--r-- 2974 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\RegexFieldValidator.java
-rw-r--r-- 3113 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\ex
-rw-r--r-- 3888 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\IntRangeFieldValidator.java
-rw-r--r-- 7014 2007-03-31 18:14 src\java\com\opensymphony\xwork2\validator\annotations\Validations.java
-rw-r--r-- 2954 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\EmailValidator.java
-rw-r--r-- 5820 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\VisitorFieldValidator.java
-rw-r--r-- 3705 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\DateRangeFieldValidator.java
-rw-r--r-- 3170 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\Conversion
-rw-r--r-- 5760 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\Validation.java
-rw-r--r-- 4337 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\StringLengthFieldValidator.java
-rw-r--r-- 1885 2006-11-17 20:46 src\java\com\opensymphony\xwork2\validator\annotations\ValidationParameter.java
-rw-r--r-- 423 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\ValidatorType.java
-rw-r--r-- 4872 2006-11-13 09:05 src\java\com\opensymphony\xwork2\validator\annotations\DoubleRangeFieldValidator.java
-rw-r--r-- 40 2006-11-23 21:33 src\java\com\opensymphony\xwork2\validator\package.html
............此处省略578个文件信息
- 上一篇:单级倒立摆控制方法的仿真对比研究.pdf
- 下一篇:带时间的js日期控件
评论
共有 条评论