can we directly migrate Struts from Struts 2.0 to Struts 2.5? - struts2

I am currently using Struts 2.0 version in my project. Now I want to move the Struts 2.5 version for the same. Can I directly move from 2.0 to 2.5?
If yes what things we need to change?
If no how can we achieve it? want detailed steps.

Related

How to implement jsf 2.0 functionality in jsf 1.2

We need to implement JSF 2.0 functionality in JSF 1.2
1)FacesContext.getAttributes()
2)UIViewRoot.getViewRoot()
Version of Jdeveloper we are using is 11.1.1.7.0.
The above two should be implemented in JSF 1.2.
Any ideas/suggestions are highly appreciated.
Thanks in advance.
Kind Regards,
Sarvani.
we cannot use JSF2, because we are using Jdeveloper 11.1.1.7 version so JSF 1.2.
We need to use the below functionality for the logging purpose.
FacesContext.getAttributes()
UIViewRoot.getViewMap()
As these are introduced in JSF2 , Any Idea/suggestions how to achieve the same functionality in JSF 1.2
-Jagadeesh Badri

Acegisf tag Library for jsf 2.0

I have a JSF 2.0 application. Can we use acegi-jsf of version 1.1.3. Can we use this tag library for JSF 2.0.
Acegi does not exist anymore. It was taken over by Spring in April 2008 and continued under the brand "Spring Security". That Acegi tag library is likely JSP targeted and not Facelets targeted. JSF 2.0 was namely introduced in December 2009, which is a long time after the Acegi takeover by Spring.
You should be looking for Spring Security JSF 2.0 tag library instead. However, a "JSF 2.0 tag library" can better be rephrased to "Facelets tag library" in order to end up with a more correct term and thus get better Google hits. You ultimately want to use this on Facelets (XHTML) files, right?
I don't do Spring, but Googling on "Spring Security Facelets tag library" yields among others this link which describes how to manually declare Facelets tag libraries and EL functions. There does thus not seem to be a full integration (i.e. just dropping JAR in webapp without the need to manually create .taglib.xml files), they seem to be working on that for future releases.

Difference between jsf 1.2 and jsf 2.0

I have worked in jsf 1.2, rich faces and using hibernate ORM. I want to ask, how my project will change if i convert it to jsf 2.0 and prime faces. what can be the reason to shift to jsf 2.0? primitive question but i want to know from the experts the primary reason why would one shift from jsf 1.2 to jsf 2.0. Thanks.
First of all, in a JSF 2.0 you will get more functionallity then JSF 1.2
Like take a look at simple datatable tag in JSF 1.2 it is much more complex for like simple crud ops where in a JSF 2.0 all your code will be well optimised.
Plus like when you want to add some extra features and functionallity to your existing project, you will easily get support of external libraries.
Likewise when you are getting a error in JSF 1.2 it is more difficult to solve and get guide because very less resources available on it.
And on a last like it is very old version of JSF so I would suggest to move on JSF 2.0

Struts 2 in RAD

Does Struts2 work on RAD 7.5.5 ?
I am creating a sample dynamic web project in RAD, and my JSP pages are getting called, but the Action classes are not invoked.
I am getting the below error:
Error 404: SRVE0190E: File not found: /hello
It supports Struts2, as every other 3rd party technology, but it does not provide any specific tooling as for Struts 1.3.
Rational Application Developer 7.5 and 8.0 do not provide any specific
tooling for Struts 2.x (such as it does for Struts 1.x).
For example, you will need to obtain the Struts 2.x runtime files from
the Struts Web site yourself and manually add them to (and configure
them within) a Dynamic Web project in which you intend to use Struts
2.x.
Note: A Struts 2.x application is treated as a standard Dynamic Web
project.
FROM: http://www-01.ibm.com/support/docview.wss?uid=swg21327401
You can verify your installation with the Introduction to Struts 2.x using RAD 7.5 guide (that has nothing to do with S2, despite the title),
and download and run a template project from here , to start from something running.
By the way your seems an configuration error, check your cfg from zero, or use the template.

How to replace JSF 1.2 with JSF 2.0

I have an application, full application that made on JSF 1.2. Now we are adding module in it. Can i replace JSF 1.2 with JSF 2.0 ? Means only new module use JSF 2.0 and the remaining application become unaffected by the change? Means is JSF 2.0 is fully compatible with JSF 1.2. Like i open the project in netbeans and add JSF 2.0 jar in the project and remove the JSF 1.2 jar? Can i do that ? or i should have use JSF 1.2 for new module because application is made on JSF 1.2 ?
Thanks
There's a pretty good thread for that where they explain basic settings to more advanced settings to migrate from JSF 1.2 to JSF 2.0

Resources