Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Register plugin in "Tiles plugin configuration"

Matthias Stoll

2006-12-18

Replies:

You are my master :-)

It works. Great. THX


Mit freundlichen Grüßen / With best regards

Matthias Stoll
IT & Processing
HPI - procurement unlimited
______________________________________
HPI GmbH
Am Limespark 2
D-65843 Sulzbach (Taunus)

Office: +49(69)305-83249
Fax:   +49(69)305-80409
Mobile: +49(163)3282027
eMail: matthias.stoll@(protected)
______________________________________



Antonio Petrelli <apetrelli@(protected)>
18.12.2006 08:47
Please respond to
"Struts Users Mailing List" <user@(protected)>


To
Struts Users Mailing List <user@(protected)>
cc

Subject
Re: Register plugin in "Tiles plugin configuration"






Matthias Stoll ha scritto:
> Thx Antonio
>
> extending and overriding nop, but how to register in "Tiles plugin
> configuration". Do you mean chain-config.xml? How to do that?
>

You have to modify the plugin configuration, in struts-config.xml.

<plug-in className="org.apache.struts.tiles.TilesPlugin">
  <set-property
    property="definitions-config"
      value="/WEB-INF/tiles-defs.xml"/>
  <set-property
    property="definitions-factory-class"
      value="name.of.YourClass"/>
</plug-in>

Ahhh lazyness :-P

HTH
Antonio


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.