2) actually assigns the value ""
1) gets the value of the property from the formbean if it has been assigned in 
the formbean.
You may have an action that populates the form by hitting a database, loading 
the data in the form
and the forwarding to your current page ie before editing a record.

mas
Emi Lu wrote:
> Good morning,
> 
> A question about struts1 <html:hidden> tag.
> 
> May I know the differences between (1) vs. (2) please?
> (1)<html:hidden property="field1" />
> (2)<html:hidden property="field1" value="" />
> 
> 
> When I load value from popup windows, it seems that default value will
> be setup on (1); while (2) always return value="".
> 
> Could someone let me know why? I am lost why default value will cause
> "problem".
> 
> Thanks a lot
> ---
> Lu Ying
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 


-- 
 Mark Shifman MD. Ph.D.
 Yale Center for Medical Informatics
 Phone (203)737-5219
 mark.shif...@yale.edu

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

Reply via email to