Thanks Jim,

<put name="formBit" value="/setupForm.do"/>

The only disadvantage I can see is that setForm.do designated Action
class will not be aware of the tile context. I think this is where Tiles
and Struts are not really working together - they both keep their
independence but we pay the price.

Thanks again,

Erez

-----Original Message-----
From: Jim Barrows [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 7:05 PM
To: Struts Users Mailing List
Subject: RE: initialize a form in a tile



> -----Original Message-----
> From: Erez Efrati [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 02, 2004 11:00 AM
> To: 'Struts Users Mailing List'
> Subject: RE: initialize a form in a tile
> 
> 
> Can you give an example of the a tile definition? Are you using the
> "controllerURL" attribute and set it to one of your Struts actions?

<definition name="site.index.page" extends="site.mainLayout" >
          <put name="title"  value="Tiles Blank Site Index" />
          <put name="formBit" value="/setupForm.do"/>
          <put name="body"   value="/tiles/body.jsp" />
</definition>

setupForm.do forwards to the jsp page.

> 
> --Erez
> 
> -----Original Message-----
> From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
> Sent: Monday, August 02, 2004 6:49 PM
> To: Struts Users Mailing List
> Subject: Re: initialize a form in a tile
> 
> From: "Erez Efrati" <[EMAIL PROTECTED]>
> > I have a tile that contains a form.
> > Where is the best place to initialize it?
> >
> > In simple struts the action is called and the form
> > Is created and the action can set the form values and forward to the
> > view page.
> 
> It works exactly the same way with Tiles, only instead of 
> forwarding to
> the
> 'view page' you forward to the tile definition.  So continue 
> to do your
> setup in the Action (or in supporting classes that you call from the
> Action)
> and then forward to your tile.
> 
> -- 
> Wendy Smoak
> 
> 
> ---------------------------------------------------------------------
> 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]
> 
> 

---------------------------------------------------------------------
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