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