Hi Rahul, I'm kind of a newbie, but I believe that:
(1) Assuming that the scope you specified for that bean is "request", it's intantiated when rendering the page (I suppose you mean a "GET") and every time you do a "POST". (2) You can specify a default value inside your JSP, but - almost sure - also through the struts-config file (the <initial> attribute on the <property> tag). Hope I'm not giving you more questions than answers. Regards, Freddy. -----Mensaje original----- De: Rahul Mohan [mailto:[EMAIL PROTECTED] Enviado el: viernes, 09 de enero de 2004 15:47 Para: struts Asunto: Using the ActionForm in the JSP Hi everyone, I need to access the ActionForm properties inside the JSP code for the same window. Is there any way to do this? Regarding this I have some doubts about the life cycle of ActionForms.... 1. When exactly is the ActionForm object instantiated? Is the ActionForm object instantiated only on submit of the corresponding form? or is it instantiated while rendering the page? 2. Also I need to set some properties to default values at instantiation of the ActionForm. Can I simply override the ActionForm constructor in my action-form? That doesnt look like a good strategy since the constructor implementation in the ActionForm does not seem to be made for overriding as it has some code in it ( its simply servlet = null ).... so is it wise to simply override it? it seems a bit over smart idea!!! :) Please help me out...... thank you, rahul --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

