You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dallas <da...@hotmail.com> on 2008/07/04 09:36:50 UTC
Actions, properties and validation in separate packages?
Hi all!
I´m wondering if there´s any way of configuring struts2 to allow
me to keep actions, properties and validation in separate packages?
At the moment I have one packages, se.intranet.apps which includes
all my actions, properties and validations.
I´d rather keep them in separate packages, like
se.intranet.apps.actions
se.intranet.apps.properties
se.intranet.apps.validation
Any idea on how to do this?
I´ve tried reading up on localazation, but looking at
http://struts.apache.org/2.0.6/docs/localization.html the documentation
it doesn´t look possible...
--
View this message in context: http://www.nabble.com/Actions%2C-properties-and-validation-in-separate-packages--tp18274471p18274471.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Actions, properties and validation in separate packages?
Posted by Dallas <da...@hotmail.com>.
Wow, you think like I think :-)
That´s exactly what I want, structure during development.
Thanks alot!
dusty wrote:
>
> Do you really want them in separate packages or do you just want them in
> separate directories. It seems to me that you are looking for a
> particular organization of files during development, so you can keep all
> the like files together. Seems reasonable enough. If that is the case
> then you can create a series of "src" directories that mirror the
> classpath but only hold particular files.
>
> So,
>
> src/main/java/actions/se/intranet/apps/actions/myAction.java
> src/main/java/properties/se/intranet/apps/actions/myAction.properties
> src/main/java/validation/se/intranet/apps/actions/myAction-validation.xml
>
> They all have the same packages and classpath, but they are organized how
> you think of them. I think....or you think....or I think you think....
>
>
>
> Dallas wrote:
>>
>> Hi all!
>>
>> I´m wondering if there´s any way of configuring struts2 to allow
>> me to keep actions, properties and validation in separate packages?
>>
>> At the moment I have one packages, se.intranet.apps which includes
>> all my actions, properties and validations.
>>
>> I´d rather keep them in separate packages, like
>> se.intranet.apps.actions
>> se.intranet.apps.properties
>> se.intranet.apps.validation
>>
>> Any idea on how to do this?
>> I´ve tried reading up on localazation, but looking at
>> http://struts.apache.org/2.0.6/docs/localization.html the documentation
>> it doesn´t look possible...
>>
>
>
--
View this message in context: http://www.nabble.com/Actions%2C-properties-and-validation-in-separate-packages--tp18274471p18314783.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Actions, properties and validation in separate packages?
Posted by dusty <du...@yahoo.com>.
Do you really want them in separate packages or do you just want them in
separate directories. It seems to me that you are looking for a particular
organization of files during development, so you can keep all the like files
together. Seems reasonable enough. If that is the case then you can create
a series of "src" directories that mirror the classpath but only hold
particular files.
So,
src/main/java/actions/se/intranet/apps/actions/myAction.java
src/main/java/properties/se/intranet/apps/actions/myAction.properties
src/main/java/validation/se/intranet/apps/actions/myAction-validation.xml
They all have the same packages and classpath, but they are organized how
you think of them. I think....or you think....or I think you think....
Dallas wrote:
>
> Hi all!
>
> I´m wondering if there´s any way of configuring struts2 to allow
> me to keep actions, properties and validation in separate packages?
>
> At the moment I have one packages, se.intranet.apps which includes
> all my actions, properties and validations.
>
> I´d rather keep them in separate packages, like
> se.intranet.apps.actions
> se.intranet.apps.properties
> se.intranet.apps.validation
>
> Any idea on how to do this?
> I´ve tried reading up on localazation, but looking at
> http://struts.apache.org/2.0.6/docs/localization.html the documentation
> it doesn´t look possible...
>
--
View this message in context: http://www.nabble.com/Actions%2C-properties-and-validation-in-separate-packages--tp18274471p18298623.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org