Re: struts 2, implements Action / extend ActionSupport

2009-04-12 Thread Dave Newton
Martin Gainty wrote: assuming you are using Actions annotation to define multiple action methods within a single action class? @Action("/different/url") http://cwiki.apache.org/WW/convention-plugin.html How does this differentiate between implementing Action or extending ActionSupport? Da

Re: struts 2, implements Action / extend ActionSupport

2009-04-12 Thread Dave Newton
john lee wrote: i am aware that in struts 2, when define an action, it could be public class XXX implement Action or public class XXX extends ActionSupport what is the difference b/w above two? in other words, in what kind of scenario, pick which one? If you want validation or I1

RE: struts 2, implements Action / extend ActionSupport

2009-04-12 Thread Martin Gainty
quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Sun, 12 Apr 2009 22:11:09 +0800 > Subject: Re: struts 2, implements Action / extend ActionS

Re: struts 2, implements Action / extend ActionSupport

2009-04-12 Thread Steven Yang
> > basically ActionSupport gives you some default implemented methods to make > your life easier. if you dont need them you can simply implement Action But for Struts2 you dont even HAVE to implement the Action interface, as long as you have a method called "execute" or any named method that your

struts 2, implements Action / extend ActionSupport

2009-04-11 Thread john lee
    i am aware that in struts 2, when define an action, it could be      public class XXX implement Action    or    public class XXX extends ActionSupport   what is the difference b/w above two? in other words, in what kind of scenario, pick which one?   tks in advance   john