If you use 

struts.convention.default.parent.package

In either the web.xml or struts.xml, I think what you specify there will
be the default for all actions.

I have a link in the previous email but I think it must have been
removed :

struts.apache.org/2.1.6/docs/convention-plugin.html#ConventionPlugin-Par
entPackageannotation

Cookie

-----Original Message-----
From: RogerV [mailto:roger.var...@googlemail.com] 
Sent: 29 October 2009 13:22
To: user@struts.apache.org
Subject: RE: Convention Plugin & Struts Packages



James Cook-13 wrote:
> 
> Hey Roger,
> 
> You need to use @ParentPackage I believe. Or use this
> 
> struts.convention.default.parent.package
> 
> Hope this helps 
> 
> Cookie
> 

Thanks Cookie, adding @ParentPackage to all my secure actions has solved
the
problem and I'm now getting the secureStack interceptors. It seems a
pain to
have to do it this way (I know I could simplify by creating a base
action
for each package and extend), particularly when I have multiple
packages.
It's a shame that Struts doesn't seem able to infer this from the info
in
struts.xml and the java package locations.

Regards 
-- 
View this message in context:
http://www.nabble.com/Convention-Plugin---Struts-Packages-tp26112472p261
12955.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


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

Reply via email to