I am confused. It should be very obvious, but I cannot figure it out :(
How can I display Action Form property as simple text (label) in my .jsp page?
I can use <html:text> tag, for example, to create an input text field for the desired property but how can I simply display this value as plain text using Struts 1.x?
<c:out value="${theActionForm.label}" /> using the JSTL or, if you really like Struts tags, <bean:write name="theActionForm" property="label" />.
This assumes that the action form is registered under the attribute name "theActionForm", and has a getLabel() method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With