Hey Martin,
   it seems that the culprit was not struts but easy struts. I had it configured to 
develop struts application and it ended up messing my environment. I created a new 
project and did everything over again and that solved the problem. I realised it mught 
be easy struts problem because the other normal struts project would work but the one 
with Easy Struts would not. Sorry for the bother.
Sohil
p.s. i tried to be added ot the struts user mailing list but all the mail bounce back

-----Original Message-----
From: Martin Cooper [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 10:06 PM
To: Tag Libraries Users List
Subject: RE: DynaActionForm problem


Since this is a Struts issue, it should be taken up on the struts-user list
rather than here. However, since this looks like it could be a bug, please
file a bug report against the Struts taglibs instead, here:

http://issues.apache.org/bugzilla/

--
Martin Cooper


> -----Original Message-----
> From: MARU, SOHIL (SBCSI) [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 01, 2004 3:43 PM
> To: Tag Libraries Users List
> Subject: DynaActionForm problem
>
>
> Hello All,
>    I was trying to use Dyanmic forms with my struts application.
> However the page blows up with the following
>
> exception
>       javax.servlet.jsp.JspException: Exception creating bean of
> class org.apache.struts.validator.DynaValidatorForm: {1}
>       org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:563)
>       org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
>
> org.apache.jsp.jsp.xsl.index_005fxsl_jsp._jspx_meth_html_form_0(in
> dex_005fxsl_jsp.java:129)
>
> org.apache.jsp.jsp.xsl.index_005fxsl_jsp._jspService(index_005fxsl
> _jsp.java:86)
>       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
> per.java:311)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
>       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
> org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireS
> tring(ImportSupport.java:314)
>
> org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag
> (ImportSupport.java:176)
>
> org.apache.jsp.jsp.index_jsp._jspx_meth_c_import_0(index_jsp.java:102)
>       org.apache.jsp.jsp.index_jsp._jspService(index_jsp.java:66)
>       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
> per.java:311)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
>       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
> I debugged into the source and found that in DynaActionFormClass,
> the following method is causing the problem
>
> public DynaBean newInstance()
>         throws IllegalAccessException, InstantiationException {
>
>         DynaActionForm dynaBean =
>             (DynaActionForm) getBeanClass().newInstance();
>         dynaBean.setDynaActionFormClass(this);
>         FormPropertyConfig props[] = config.findFormPropertyConfigs();
>         for (int i = 0; i < props.length; i++) {
>             dynaBean.set(props[i].getName(), props[i].initial());
>         }
>         return (dynaBean);
>
>     }
>
> because the method setDynaActionFormClass is not defined in the
> DynaActionForm class.
>
> I am using struts1.1 with Tomcat 5.0. I looked for solutions on
> the net but did not see this problem anywhere. Any guidance will
> be greatly appreciated.
> Thanks,
> Sohil
>
> My strutsConfig.xml has the following form-bean definition
>
>     <form-beans>
>         <form-bean name="LoginForm"
>
> type="org.apache.struts.validator.DynaValidatorForm">
>             <form-property name="loginName" type="java.lang.String" />
>             <form-property name="password" type="java.lang.String" />
>         </form-bean>
>     </form-beans>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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


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

Reply via email to