If I have a JSP which has a form, I can reference the ActionForm fields
like this:

<html:form ... >
    <html:text property="prop1"/>
    <html:text property="prop2"/>
    <html:text property="prop3"/>
</html:form>

This is nice because the JSP does not need to know what the form name it is
using.

However, if I want to print some plain text, I have not found a way to do
it other than:

<html:form ... >
    <c:out value="${formName.prop1}"/>
    <html:text property="prop2"/>
    <html:text property="prop3"/>
</html:form>

or

<html:form ... >
    <bean:write name="formName" property="prop1"/>
    <html:text property="prop2"/>
    <html:text property="prop3"/>
</html:form>

This means that the JSP needs to know the form name, which I would rather
not be the case.

I know I can use <html:text property="prop2" readonly='true'/> but this is
not what we want it to look like.

Does anyone have any suggestions on how to handle this?

I haven't used struts very long and may be missing something obvious and
haven't been able to find anything with searches.

Thanks,
Dave


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

Reply via email to