Yes, Deadly combination!! It doesn't means that there would some super stars of the film who would go the devil place and finish him. No No !!
I am talking about the deadly combination used in the development of the web sites. I am talking about the tools used for the Java development. Any guesses so far....
Yes, they are Struts2, Spring, and Hibernate
I am currently working all these tools. I am amazed to see the power of all the three technologies and how they makes the life of a developer like me, so easy.
All of three would make your project a huge success.
Now talking about Struts2... It is great framework with the inbuilt Ajax tags that would help many developers. Many new features of the struts2 are marvelous.
Hibernate... I already told in my last post about this. Hibernate would provide you a greater facility for your data persistence. its in built architecture that is fully object oriented which makes it a powerful tool. And yes, not to forget about the HQL (Hibernate Query Language).
Spring... Again a master piece framework which lets you to do handle hibernate and specially the IOC (Inversion of Control) that lets programmers to walk to the higher level. Spring have many in built functionalities that help in various ways. One of them is scheduling of tasks. Before this you have to do manually write lots of code but now with a fewer code you can achieve greater flexibility.
So enjoy working with the deadly combination
I had seen many new deveopers struggling against struts2 hello world example. So I decided to write a small example. Below are the required libraries to run this example which are easily availabel struts2-core-2.1.8.1 xwork-core-2.1.6 commons-logging-1.0.4 commons-logging-api-1.1 freemarker-2.3.8 ognl-2.7.3 commons-fileupload-1.2 The structure of the applictaion which I am following is (Eclipse IDE) Struts2Demo |---src | |----org | | |----vinod | | | |----action | | | | |----HelloWorld।java |---struts.xml |---WebContent | |---jsp | |---HelloWorld।jsp |---index.jsp |---WEB-INF | |---lib | |---web.xml Struts 2 in Action It is true that different IDE's use different structure, but at last when war is build they follow same structure. Lets start... HelloWorld.java import com.opensymphony.xwork2.ActionSupport; public class HelloWorld extends ActionSupport { String greetings = null; public String execute() throws Exception { setGreetings("Hel
Comments
Post a Comment