Hi, Now I am migrating from struts1 to struts2.
In struts1 I have a homeAction which extends dispatchAction and it uses homeActionForm. I have configured it this way in struts.xml: <interceptors> <interceptor name="homeActionForm" class="com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor"> com.XXX.XXX.HomeActionForm homeActionForm </interceptor> <interceptor name="homePage" class="org.apache.struts2.s1.ActionFormValidationInterceptor"> /org/apache/struts/validator/validator-rules.xml, /WEB-INF/validation-rules.xml, /WEB-INF/Validation.xml </interceptor> <interceptor-stack name="homeActionForm"> <interceptor-ref name="staticParams" /> <interceptor-ref name="homeActionForm" /> <interceptor-ref name="modelDriven" /> <interceptor-ref name="actionForm-reset" /> <interceptor-ref name="basicStack" /> <interceptor-ref name="homePage" /> <interceptor-ref name="workflow" /> </interceptor-stack> </interceptors> <action name="loadPage" class="org.apache.struts2.s1.Struts1Action"> com.XXX.XXX.homeAction <result name="load" type="tiles">/home.jsp</result> </action> Laurie Harper wrote: > > Sandy143 wrote: >> Hello Everyone : >> >> [Servlet Error]-[org.apache.struts.action.ActionForm]: >> java.lang.InstantiationException: org.apache.struts.action.ActionForm >> >> I get this error when I try to migrate from Struts 1.2.8 to Struts2. >> >> I have validations to the form. I am using interceptors for the same. >> >> Please let me know ... if I am missing something or need to add >> something. > > Your question is far too vague. ActionFrom is a Struts1 type; > interceptors are a Struts2 concept; saying 'I have validations' or 'I am > using interceptors' tells us nothing about how you have these configured. > > Since you seem to be struggling with integrating S1 and S2 in the same > app, I suggest you go back to basics and create a minimal, empty app > using S1 and S2 together and use it as a starting point to explore each > issue you find in isolation. That way you can post complete but concise > examples of code and configuration that demonstrate the problem. > > L. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/java.lang.InstantiationException%3A-org.apache.struts.action.ActionForm-tp16986858p16988637.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]