There is some differences:


   * Xml definitions are store in a factory; they can be inserted with
     <insert name="aDefinition"; they are declared in a centralized
     file, they can be declared using inheritance; they can be used in
     a struts <forward ...> tag; they need the initialization of the
     factory (done by the plugin)
   * jsp definition are stored in one of the jsp context. They are
     inserted with <insert beanName="aBeanId">; they don't need the
     factory; they can't be used as struts <forward ...>; they are
     created each time the <tiles:definition ..> tag is encountered.

Hope this help,

Cedric

[EMAIL PROTECTED] wrote:

Hi All,
I am new to tiles and experimenting with it a bit to see if our struts 1.0 template 
based application can be ported to Tiles easily...

I have got some sample pages from our application working using tiles definations But the definations are defined in a jsp file.

So my question is whats the difference between Using an xml file for defination and using a jsp file?If I am using jsp definations, Do i stil need to initialise the Defination factory?

If I go the jsp way, Will I be still able to use all features of tiles ?because I think to use tiles I need to use ActionComponentServlet(Struts 1.0) instead of ActionServlet...And the ActionComponentServlet modifies the forward behaviour for use with tiles...So does it mean that whether I use xml definations or not,I need to use ActionCOmponentServlet...Is it true?

Any help is appreciated...

regards,
Shirish

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to