Struts ActionForm variable values in JSP
843840Sep 26 2007 — edited Sep 28 2007I've tried to get variable values from a Struts ActionForm. I know that I can use Struts's bean tags, but can't figure out correct syntax or may there's some thing else to discover.
I'm trying something like:
...
<bean:define id="atr" name="MyActionForm" property="attribute"/></address>
<p><%=atr%></p>
...
And my struts-config look like:
...
<form-bean name="MyActionForm" type="sth.MyActionForm"/>
...
And the ActionForm is like:
...
private String attribute;
...
public String getAttribute() { ... }
public void setAttribute(String attribute) {...}
...
What may be wrong?
Edited by: aproppon on Sep 26, 2007 9:46 AM