Emi Lu wrote:
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.

If I'd like to load value from datasources into , in my jsp file, (1) should always be used; otherwise, (2) will rewritten the form value to "" ?

Yes, in (2) you're explicitly setting the value--if you're setting it to what's contained in field1 then leave off the "value" attribute, which it seems like you were doing, or use something besides a blank for the value.

Dave


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

Reply via email to