meeboo wrote:
Hey allIs there a way to set a default value for a s:textfield?
<s:textfield name="somefield" value="%{'literal text value'}"/>
<s:textfield name="somefield" value="%{otherPropertyName}"/>
See http://struts.apache.org/2.x/docs/tag-syntax.html
<s:textfield name="somefield" value="${someValue}"/> is the equivalent of what you have tried, but the approach above is betterI am trying something like this: <s:textfield name="someField" value="<s:propertyvalue="someValue" /> but am receiving a TLD error.
Experiment: Create an html form with a disabled html input and see what gets postedI also discovered that a <s:form> doesn't capture values from disabled input fields, now I know that there's already been a bug reported on s:textfield not being able to handle the 'disabled' attribute properly, but even if I use a standard <input disabled name="someValue"/> the form won't parse the value. Is this a bug or expected behaviour?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

