Procedure I followed.

1. Added all the latest jars to WEB-INF/lib
2. Updated web.xml 
3. Created struts.xml under WEB-INF folder.
4. Defined action class in 
Now If I put S2 tags in my existing S1 jsp pages they compile fine and
produce results.
The issue that I have now is with Action mappings. My folder structure is
like that

S1:
src/com/cec/struts/x/y/z/...

S2:
src/com/cec/struts2/actions/...

Now for S1 mapping is taken care in struts-config.xml file but for S2 I
update struts.xml file.

I am getting error like that :
There is no Action mapped for action name xyz

I have defined my action in src/com/cec/struts2/reportIndex.java
JSP is in web/jsp/reportIndex.jsp

struts.xml file looks like this
<struts>

    <package name="struts2" namespace="/struts2" extends="struts-default">
        <action name="reportIndex" class="com.cec.struts2.reportIndex">
                <result>/jsp/reportIndex.jsp</result>
        </action>
    </package>

</struts>

In the browser , I invoke application as:
http://localhost:8080/appcontext/com/cec/struts2/reportIndex.action

And it throws error that I mentioned above.

14:12:14,875 WARN  [Dispatcher] Could not find action or result There is no
Action mapped for action name struts2. - [unknown location]         at
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:177) 
       
at
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:59)
        
at
org.apache.struts2.rest.RestActionProxyFactory.createActionProxy(RestActionProxyFactory.java:40)
        
at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:458)     
   
at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
        
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
-- 
View this message in context: 
http://www.nabble.com/Action-mapping-issue-while-Integrating-S2-and-S1-tp21982941p21982941.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to