Wendy Smoak wrote:

Another question for Bill, also on page 33:
<html:text property="s1" value="${param.s1}"/>

Why are you using the 'value' attribute of the <html:text> tag?  Struts
should pre-populate the HTML form element based on the Form bean
property, which would have been filled in when the form was submitted
(or be blank if not).

I haven't read the whole presentation, but this is a practice I've
argued against twice in the last week here.  Either I'm completely
wrong, in which case I'd appreciate being corrected, or this really
isn't necessary.

You are correct, Wendy. As I recall, (I gave this presentation last August), I think I was trying to demonstrate the use of EL as an attribute value. I should have shown something else using EL that didn't promote a poor practice.


Bill Siggelkow


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



Reply via email to