You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Wendy Smoak <ja...@wendysmoak.com> on 2004/08/02 18:48:50 UTC

Re: initialize a form in a tile

From: "Erez Efrati" <er...@netmedia.net.il>
> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: initialize a form in a tile

Posted by Erez Efrati <er...@netmedia.net.il>.
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?

--Erez

-----Original Message-----
From: Wendy Smoak [mailto:java@wendysmoak.com] 
Sent: Monday, August 02, 2004 6:49 PM
To: Struts Users Mailing List
Subject: Re: initialize a form in a tile

From: "Erez Efrati" <er...@netmedia.net.il>
> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org