I had small but crucial typing mistake: 

Hi all,
 
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's true that a tile can have a controller but it is NOT
aware
of the form that is associated to the tile - it does not create it. I
can always set use a "controllerURL" and put a Struts action as the URL
"/user/myTile.do" but it seems to me a bit not clean. The other way is
to use simple Tile controller class which creates the right form class
and save it on the request context - clean it's not :)
 
Any help would appreciated.
 
Thanks,
 
--Erez

-----Original Message-----
From: Erez Efrati [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 7:44 PM
To: 'Struts Users Mailing List'
Subject: initialize a form in a tile

Hi all,
 
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's true that a tile can have a controller but it does aware
of the form that is associated to the tile - it does not create it. I
can always set use a "controllerURL" and put a Struts action as the URL
"/user/myTile.do" but it seems to me a bit not clean. The other way is
to use simple Tile controller class which creates the right form class
and save it on the request context - clean it's not :)
 
Any help would appreciated.
 
Thanks,
 
--Erez



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

Reply via email to