wood burning stoves 2.0*
The moose likes Struts and the fly likes struts 1 plugin issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 1 plugin issue" Watch "struts 1 plugin issue" New topic

struts 1 plugin issue

sankar kandasamy

Joined: Sep 13, 2007
Posts: 13
I need to integrate struts1 in struts2 application. For this I saw one document struts 1 plugin in this url
http://struts.apache.org/ I have followed this instructions. It is not working properly
I have included the struts2-struts1-plugin-2.0.11 and struts.jar for struts1. And using the code in struts.xml

<action name="myFormAction" class="org.apache.struts2.s1.Struts1Action">
<param name="className">com.example.action.Struts1SampleAction</param>
I got the Instantiation Exception

If I include the interceptor for Actionform
<package name="struts1 example" extends="struts1-default">
<interceptor name="scoped-model-driven" class="com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor" />
<action name="myFormAction" class="org.apache.struts2.s1.Struts1Action">
<param name="className">com.example.action.Struts1SampleAction</param>

<interceptor-ref name="scoped-model-driven">
<param name="className">com.example.action.Struts1Form</param>
<param name="name">struts1Form</param>
<param name="scope">session</param>


I got this exception

javax.servlet.ServletException: Unable to create the legacy Struts Action

Can you help me please.

Thanks in advance
jQuery in Action, 2nd edition
subject: struts 1 plugin issue
Similar Threads
Struts 1 Plugin ScopeModenDrivenInterceptor Error
Struts2 Role Interceptor Help
struts2 + interceptor
struts2: what kicks in first- the interceptors or the form's validation?
Jsp is not displaying in Struts2