Wendy Smoak wrote the following on 8/4/2005 1:27 PM:

  <html:text property="title" value="${someBean.oldTitle}>

That prevents the framework from re-displaying the user's input if the form fails
validation.

At the risk of repeating myself:  the place to pre-populate your form beans
is in the Action, before you forward to the JSP.

Yes exactly.

And if you are going to hardcode the value in there then you might as well not even use the Struts html tags?

<html:text property="title" value="${someBean.oldTitle}>

Could just become

<input type="text" name="title" value="${someBean.oldTitle}"/>

Occasionaly I will set a value manually in my JSP but for the most part, as Wendy states, this is usually a very bad practice Swapnil (form bean properties should be in place before going to the JSP).

--
Rick

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

Reply via email to