Struts 2 does have some annotation support. See the following links for details:
https://issues.apache.org/struts/browse/WW-1491 http://struts.apache.org/2.x/docs/zero-configuration.html http://struts.apache.org/2.x/docs/annotations.html On 1/24/07, André Faria <[EMAIL PROTECTED]> wrote:
I read the WW-1612 Issue (https://issues.apache.org/struts/browse/WW-1612) , and I would like to discuss some functionalities that annotations could give us, and if is possible or interesting to implement that in Struts 2. Please if you could write what you think about each topic... 1. Interceptor Annotations | @Interceptors(ValidateInterceptor.class) public class PersonAction {} ------------------------------------------------------------------ 2. Bijection Annotations ||| | @In(value="currentPerson", required=false) Person person;| | @Out(scope=CONVERSATION, required=false) Map <Product, Boolean> searchSelections; | | @Out(scope=SESSSION, required=true) List <User> users;| | Is this the |proposal |of |WW-1612 issue? |------------------------------------------------------------------| 3. Action Mapping Annotations @Action(name="person") public class PersonAction(){} @Action(name="person.*", method="{1}") public class PersonAction(){} Before initialize would be necessary to read all the Action classes like the Hibernate EntityManager read all the classes with the annotation @Entity to map it. |------------------------------------------------------------------ 4. Result Type Annotation @Result(name="person.search", type="json") public void search(){ } | Regards, André Faria --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]