On Dec 6, 2007 7:51 AM, Paul Benedict <[EMAIL PROTECTED]> wrote:
> Unlike Struts 1, Struts 2 wants your struts.xml in your
> src/main/resources -- top of the classpath, not in WEB-INF.


To load both configurations from WEB-INF/classes, change the config
parameter to the S1 servlet:

<!-- Struts 1 -->
<servlet>
  <servlet-name>action</servlet-name>
  <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
  <init-param>
     <param-name>config</param-name>
     <param-value>/WEB-INF/classes/struts-config.xml</param-value>
   </init-param>
  <load-on-startup>2</load-on-startup>
</servlet>

My "Migrating to Struts 2" article starts out by using S1 and S2 in
one application, and may be of some help. It's available here:

 * http://www.StrutsUniversity.org/Migrating+Tutorial

-- HTH, Ted
<http://www.husted.com/ted/blog/>

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

Reply via email to