You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Keysers, Wonne" <wo...@realsoftware.be> on 2001/09/24 10:05:34 UTC
Problem creating formbean
Hi,
In order to understand the Struts framework (which I'm currently studying), I was following the Bluestone Struts tutorial.(http://developer.bluestone.com/scripts/SaISAPI.dll/StrutsTrailMap.class/struts-trailmap/default.htm)
When running the Struts-Mapping Demo, the following exception is thrown:
javax.servlet.jsp.JspException: Exception creating bean of class strutsExample.custom.CustomForm: java.lang.IllegalAccessException: strutsExample/custom/CustomForm
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568)
What am I overlooking?
Thanks a lot!
Wonne
web.xml:
<init-param>
<param-name>mapping</param-name>
<param-value>strutsExample.custom.CustomMapping</param-value>
</init-param>
struts-config.xml:
<form-beans>
<form-bean name="customForm" type="strutsExample.custom.CustomForm"/>
</form-beans>
<actionmapping>
<action path="/custom" type="strutsExample.custom.GroupAction" name="customForm">
<set-property property="group" value="Struts User"/>
<forward name="view" path="/display.jsp" />
</action>