Has anyone used struts 1 plugin for using struts 1 actions in struts 2? How would we handle the return types? As in struts 1 actions, it is an actionfoward type and struts 2 return type is string ("SUCCESS", "INPUT" etc..)
After I installed the plugin and changes the struts.xml file: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <constant name="struts.devMode" value="true"/> <package name="OpportunityAction" extends="struts1-default" namespace="/OpportunityAction"> <action name="OpportunityAction" class="org.apache.struts2.s1.Struts1Action"> com.cec.cdb.struts.actionclass.opportunity.ReportI <interceptor-ref name="scopedModelDriven"> com.cec.cdb.struts.actionform.opportunity.OppForm OppForm request </interceptor-ref> <interceptor-ref name="struts1Stack"></interceptor-ref> <result name="success">/jsp/newOpp.jsp</result> </action> </package> </struts> It goes inside the struts 1 action action but fails for return type I guess as the console error says: 12:08:03,730 WARN [OgnlValueStack] Could not find property [.freemarker.RequestParameters] 12:08:03,730 WARN [OgnlValueStack] Could not find property [hideNav] 12:08:03,730 WARN [OgnlValueStack] Could not find property [hideNav] 12:08:04,293 WARN [OgnlValueStack] Could not find property [struts.valueStack] 12:08:04,324 WARN [OgnlValueStack] Could not find property [.freemarker.Request] 12:08:04,324 WARN [OgnlValueStack] Could not find property [.freemarker.RequestParameters] 12:08:04,324 WARN [OgnlValueStack] Could not find property [hideNav] 12:08:04,324 WARN [OgnlValueStack] Could not find property [hideNav] 12:08:07,058 WARN [OgnlValueStack] Could not find property [struts.valueStack] 12:08:07,199 INFO [STDOUT] *********************************************************************************** inside execute() 12:08:07,199 WARN [OgnlValueStack] Could not find property [org.apache.struts.action.ACTION_MESSAGE] -- View this message in context: http://www.nabble.com/Struts-1-Plugin-%7C-forwards--tp23390825p23390825.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