This blog post intends to answer the following questions :-
The following jar files will be required :-
Happy Programming ;)
Signing Off
Ryan
- What are the 'jar' files that are required to run my Struts 2 application?
- Where do I keep the jar files required by Struts 2 in my web application?
- From where do i get the jar files required by Struts 2?
Well, a Struts 2 application is no different from a normal web-application and requires no 'special' container like JBoss or Glassfish to execute. Even our dear friend - Tomcat will suffice. The reason is the fact that Struts 2 is a simple framework that is based upon the MVC architecture(MVC-2, to be precise) and all that is required of you is to copy a few jar files to your web application. As I have already mentioned about how a simple web application is structured here, i am only going to mention the names of the files that will be required by you to run your application.
The following jar files will be required :-
- commons-logging-x.x.jar
- freemarker-x.x.jar
- xwork-x.x.jar
- struts2-core-x.x.jar
- ognl-x.x.jar
- commons-logging-1.1.jar
- freemarker-2.3.8.jar
- xwork-2.0.1.jar
- struts2-core-2.0.6.jar
- ognl-2.6.11.jar
Now, where do we place these files? Of course, since all of them are jar files, like all other good web applications, even they have to be placed in the 'lib' directory in your web application.
From where to get these jar files? Our brethren at Apache have it all sorted out. Just click here and ye shall get all that ye might ever ask for!
Happy Programming ;)
Signing Off
Ryan
No comments:
Post a Comment