2014-04-25 16:48 GMT+02:00 Emi Lu <em...@encs.concordia.ca>:
> On 04/25/2014 10:23 AM, Lukasz Lenart wrote:
>>
>> You can create one abstract package and all other packages can inherit
>> from it - the same as you inherit from "tiles-default"
>
> So,  another way to do the change would be:
>
> <package name="top" extends="tiles-default">
> ..... //Coding for [1]
> </package>
>
> <package name="p1" namespace="/n1" extends="top">
>
> ......
> <package name="pN" namespace="/nN" extends="top">
>
> Is it correct?

This is the preferred approach

> Or, if I keep "extends=tiles-default", by adding "interceptors(coding for
> [1])" to p1...pN as shown below will do the job, right?

Yes, but package inheriting was designed to avoid such situations -
you can also inherit from many packages eg. extends="top,
tiles-default"
http://struts.apache.org/release/2.3.x/docs/package-configuration.html#PackageConfiguration-Inheritfrommorethanonepackage


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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

Reply via email to