Friday 15 February 2013

java - How to add Struts2 in Struts1 framewok -


I have a product built on the Strauss 1 framework, instead of moving the entire framework to the latest Stroops 2, Want to start with Struts2 feature with the framework

On seeing many sites, I came to know that we are running both Struct 1 and Stratus 2 framework simultaneously. While trying to do this, I've added the entry for the filter class of struts 2 in web.xml

  & lt; Filter & gt; & Lt; Filter-name & gt; Struts2 & lt; / Filter-name & gt; & Lt; Filter range & gt; Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter & lt; / Filter-class & gt; & Lt; / Filter & gt;  

and / *. Filter Mapping for Action

Now when it comes to adding action, then the struts -config tag is used in Stratus 1, whereas in struts 2 it is just struts.

How do I manage both versions in the normal struts.xml file?

When you can have both the strips 1 and 2 in an application, then you do not match the configuration Can do

You will need to keep your struts1 action (.do) configured as you did before and start configuring struts2 action (.action) in 2 ways in Struts.

They actually live on one side


No comments:

Post a Comment