You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Łukasz Lenart <lu...@googlemail.com> on 2012/03/21 08:54:12 UTC

Common names of properties

Hi,

I just notice that S2 and XWork use the sam properties but under
different names, eg. struts.devMode (S2) and devMode (XW). What about
inline them and use just struts.* ?


Regards
-- 
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Common names of properties

Posted by Łukasz Lenart <lu...@googlemail.com>.
I'm still wondering how it should be :/

Right now XWork is part of Struts2 and dozen of users used it with S2,
there're a rare number of people who used XWork separately. I think we
should stick names of properties with "struts" or add "xwork" prefix
to current "alone" XWork properties, like struts.devMode should be
mapped to xwork.devMode.

... but still I'm not convinced if it's the best way.


Regards
-- 
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Common names of properties

Posted by Christian Grobmeier <gr...@gmail.com>.
On Wed, Mar 21, 2012 at 9:42 AM, Maurizio Cucchiara
<mc...@apache.org> wrote:
> I'm also for standardizing, but this time I'm not sure how this fits with
> the whole architecture.
> XWork is able to work without Struts, and Struts depends on XWork. So make
> XW aware of S2 is a kind of circular dependency.
> I'd rather prefer to make the property names plain (ex: struts.devMode ->
> devMode)

+1

I have recently learned in another context that one might use XWork
without Struts. This is pretty interesting option, but to my taste it
is not highlighted very much. Not sure if that makes sense?

>
> Twitter     :http://www.twitter.com/m_cucchiara
> G+          :https://plus.google.com/107903711540963855921
> Linkedin    :http://www.linkedin.com/in/mauriziocucchiara
>
> Maurizio Cucchiara
>
>
> On 21 March 2012 09:07, Philip Luppens <ph...@gmail.com> wrote:
>
>> 2012/3/21 Łukasz Lenart <lu...@googlemail.com>
>>
>> > Hi,
>> >
>> > I just notice that S2 and XWork use the sam properties but under
>> > different names, eg. struts.devMode (S2) and devMode (XW). What about
>> > inline them and use just struts.* ?
>> >
>> >
>> > Regards
>> > --
>> > Łukasz http://www.lenart.org.pl/
>> > mobile +48 606 323 122, office +27 11 0838747
>> > Warszawa JUG conference - Confitura http://confitura.pl/
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> > For additional commands, e-mail: dev-help@struts.apache.org
>> >
>> >
>> I'm all for standardizing - so +1 for the struts.* approach.
>>
>> -Phil
>>
>> --
>> "We cannot change the cards we are dealt, just how we play the hand." -
>> Randy Pausch
>>



-- 
http://www.grobmeier.de
https://www.timeandbill.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Common names of properties

Posted by Philip Luppens <ph...@gmail.com>.
On Wed, Mar 21, 2012 at 9:42 AM, Maurizio Cucchiara
<mc...@apache.org>wrote:

> I'm also for standardizing, but this time I'm not sure how this fits with
> the whole architecture.
> XWork is able to work without Struts, and Struts depends on XWork. So make
> XW aware of S2 is a kind of circular dependency.
>

Good point. That slipped my mind for a moment.


> I'd rather prefer to make the property names plain (ex: struts.devMode ->
> devMode)
>
> Twitter     :http://www.twitter.com/m_cucchiara
> G+          :https://plus.google.com/107903711540963855921
> Linkedin    :http://www.linkedin.com/in/mauriziocucchiara
>
> Maurizio Cucchiara
>
>
> On 21 March 2012 09:07, Philip Luppens <ph...@gmail.com> wrote:
>
> > 2012/3/21 Łukasz Lenart <lu...@googlemail.com>
> >
> > > Hi,
> > >
> > > I just notice that S2 and XWork use the sam properties but under
> > > different names, eg. struts.devMode (S2) and devMode (XW). What about
> > > inline them and use just struts.* ?
> > >
> > >
> > > Regards
> > > --
> > > Łukasz http://www.lenart.org.pl/
> > > mobile +48 606 323 122, office +27 11 0838747
> > > Warszawa JUG conference - Confitura http://confitura.pl/
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: dev-help@struts.apache.org
> > >
> > >
> > I'm all for standardizing - so +1 for the struts.* approach.
> >
> > -Phil
> >
> > --
> > "We cannot change the cards we are dealt, just how we play the hand." -
> > Randy Pausch
> >
>

-- 
"We cannot change the cards we are dealt, just how we play the hand." -
Randy Pausch

Re: Common names of properties

Posted by Łukasz Lenart <lu...@googlemail.com>.
2012/3/21 Maurizio Cucchiara <mc...@apache.org>:
> I'm also for standardizing, but this time I'm not sure how this fits with
> the whole architecture.
> XWork is able to work without Struts, and Struts depends on XWork. So make
> XW aware of S2 is a kind of circular dependency.
> I'd rather prefer to make the property names plain (ex: struts.devMode ->
> devMode)

... that can affect Struts users and XWork is part of Struts2 now. But
maybe you are right, it's a better way even if it breaks backward
compatibility.


Regards
-- 
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Common names of properties

Posted by Maurizio Cucchiara <mc...@apache.org>.
I'm also for standardizing, but this time I'm not sure how this fits with
the whole architecture.
XWork is able to work without Struts, and Struts depends on XWork. So make
XW aware of S2 is a kind of circular dependency.
I'd rather prefer to make the property names plain (ex: struts.devMode ->
devMode)

Twitter     :http://www.twitter.com/m_cucchiara
G+          :https://plus.google.com/107903711540963855921
Linkedin    :http://www.linkedin.com/in/mauriziocucchiara

Maurizio Cucchiara


On 21 March 2012 09:07, Philip Luppens <ph...@gmail.com> wrote:

> 2012/3/21 Łukasz Lenart <lu...@googlemail.com>
>
> > Hi,
> >
> > I just notice that S2 and XWork use the sam properties but under
> > different names, eg. struts.devMode (S2) and devMode (XW). What about
> > inline them and use just struts.* ?
> >
> >
> > Regards
> > --
> > Łukasz http://www.lenart.org.pl/
> > mobile +48 606 323 122, office +27 11 0838747
> > Warszawa JUG conference - Confitura http://confitura.pl/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > For additional commands, e-mail: dev-help@struts.apache.org
> >
> >
> I'm all for standardizing - so +1 for the struts.* approach.
>
> -Phil
>
> --
> "We cannot change the cards we are dealt, just how we play the hand." -
> Randy Pausch
>

Re: Common names of properties

Posted by Philip Luppens <ph...@gmail.com>.
2012/3/21 Łukasz Lenart <lu...@googlemail.com>

> Hi,
>
> I just notice that S2 and XWork use the sam properties but under
> different names, eg. struts.devMode (S2) and devMode (XW). What about
> inline them and use just struts.* ?
>
>
> Regards
> --
> Łukasz http://www.lenart.org.pl/
> mobile +48 606 323 122, office +27 11 0838747
> Warszawa JUG conference - Confitura http://confitura.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
I'm all for standardizing - so +1 for the struts.* approach.

-Phil

-- 
"We cannot change the cards we are dealt, just how we play the hand." -
Randy Pausch