File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes struts1 & struts2 coexisting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts1 & struts2 coexisting" Watch "struts1 & struts2 coexisting" New topic

struts1 & struts2 coexisting

gianfredo ligonzi

Joined: Jun 06, 2011
Posts: 1
hi guys
i have to introduce struts2 in a project that already use struts1
Reading the manual "Struts2 in action" i have done some steps to do it

- struts2 jar inclusion in the folder WEB-INF/lib
- struts2 filter tag added in the web.xml with *.action url-pattern
- struts.xml file added in /src folder
- empty applicationContext.xml file added in WEB-INF folder

but when i run the application and digit url to call my old struts1 action .do, i have a HTTP Status 404 error as response.
if i delete the filter tag block from web.xml it's all ok

any suggestion?
I agree. Here's the link:
subject: struts1 & struts2 coexisting
It's not a secret anymore!