RE: Is this obvious ?

2008-08-01 Thread Martin Gainty
and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Fri, 1 Aug 2008 09:17:46 -0400 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: Re: Is this obv

Re: Is this obvious ?

2008-08-01 Thread Wes Wannemacher
Although I agree that less code is good, there gets to be a point of terseness that you should be wary of. I would suggest keeping getters and setters on your struts 2 actions for a few reasons. First, Struts 2 Actions are simple POJOs for the most part, and by following the JavaBeans conventions a

Re: Is this obvious ?

2008-08-01 Thread stanlick
If you want less boilerplate code you should consider using Groovy for your actions. On Fri, Aug 1, 2008 at 2:55 AM, Lyallex <[EMAIL PROTECTED]> wrote: > Good Morning > > I have an Action called SomeAction > it has a field called someInt > > public class SomeAction extends ActionSupport{ > > pr

Is this obvious ?

2008-08-01 Thread Lyallex
Good Morning I have an Action called SomeAction it has a field called someInt public class SomeAction extends ActionSupport{ private int someInt; public int getSomeInt(){return someInt;} public void setSomeInt(int someInt){this.someInt = someInt;} } when this action is invoked from a