> -----Original Message-----
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 02, 2004 11:20 AM
> To: Struts Users Mailing List
> Subject: Re: initialize a form in a tile
> 
> 
> From: "Jim Barrows" <[EMAIL PROTECTED]>
> >   <put name="formBit" value="/setupForm.do"/>
> 
> I have nothing with .do in my tiles-defs.xml file.  One of 
> mine looks like:
> 
>   <definition name="account.inquiry.page" extends="masterPage">
>     <put name="heading"     value="Account Inquiry" />
>     <put name="tabs"        
> value="/WEB-INF/jsp/accountInquiryMenu.jsp" />
>     <put name="body"        value="/WEB-INF/jsp/accountInquiry.jsp" />
>   </definition>
> 
> accountInquiry.jsp has the form in it, and the Action that forwards to
> 'account.inquiry.page' handles prepopulating the form if necessary.
> 
> I don't think I understand the original question though... 
> the Tiles stuff
> comes at the end, it's a replacement for the JSP.  The Tiles 
> controller just
> handles assembling the parts, it doesn't need to know about 
> the form.  At
> least, not the way I use it.

You are correct.  However, assume that accountInquiryMenu.jsp needs some setup, and is 
a part of every tile definition, and needs some custom setup... How do you setup just 
that one tile?  I do it using an action.  You could do it with a controller, but like 
you said that's for assembling the parts, not creating the parts.  The only place I 
can find that makes sense is in an action.  

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