struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roberto Nunnari <roberto.nunn...@supsi.ch>
Subject Re: validation and action names with slashes
Date Fri, 20 Jun 2008 06:19:07 GMT
Anybody on this, please?

--
Robi


Roberto Nunnari wrote:
> Hello.
> 
> I'd like to use declarative Action-alias field validation for
> several Actions/methods in my S2 webpapp.
> 
> S2 let's me do in struts.xml elegant things like:
> <package name="admin" extends="tiles-default" namespace="/admin">
>   ...
>   <action name="*/*" method="{2}" class="mypkg.admin.{1}Action">
>     .. my results..
>   </action>
>   ...
> </package>
> 
> and then use it in my jsps:
> <s:url action="Category/create" namespace="/admin" id="newURL"/>
> 
> ..but in order to add declarative validation, that would require
> a file named:
> CategoryAction/create-validation.xml
> 
> but '/' is not a character allowed in filenames.
> 
> How to go with this dilemma? Should I drop the slashes in
> action names and use more verbose and less flexible declarations
> in struts.xml, or is there a better way?
> 
> Thank you!
> 


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


Mime
View raw message