Let's say I want to retrieve a value from the database and show that in my jsp using the <html:text> tag. Now what value should I give for the value attribute as I will be populating my bean and I want the value from the bean to be displayed in the textbox.
<html:text property = "name" value="??" />
If I only specify the property without a value, then I know that the value will be taken from the associated bean, but I would like to know what if I give a default value and if there is a value in the database, populate that value and if else use the default value.
That's fine but what would it mean when I specify the value = "john" and I don't do anything in my reset () method? the value will always be john despite the actual value that comes from my database. Clarification?
Joined: Feb 15, 2005
Just don't use the value attribute at all. Manipulate the ActionForm property instead.