aspose file tools*
The moose likes Struts and the fly likes Struts 2 within Struts 1 application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 within Struts 1 application" Watch "Struts 2 within Struts 1 application" New topic
Author

Struts 2 within Struts 1 application

Mina Daoud
Ranch Hand

Joined: Sep 24, 2010
Posts: 88
Hey guys,
I am not sure if this possible or not, as i googled a lot without getting a clue!
I am having a huge CRM application built with Struts1, the application is traditional CRM, with 2 levels left menu and the main pages. I would like to add a module written in Struts2, is this possible by any way?

Thanks,
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9313
    
  17

You can create a struts.xml file, include struts libraries into your application, include the struts2 filter in web.xml and create whatever module you like in Struts 2. But if its not a very big module, adding another version of struts to your application will increase complexity uselessly IMO...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Mina Daoud
Ranch Hand

Joined: Sep 24, 2010
Posts: 88
So its not recommended to do so! The problem is that i am having a huge application with Struts1 and would like to upgrade it to Struts2, I thought the best way is keep changing module by module as building it from scratch would take time. Am i right or there is another solution to migrate big applications?

Thanks,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts 2 within Struts 1 application