Downloading and configuring Struts

The minimum requirements for Struts applications are jdk, a web server(like tomcat and GlassFish Server) and the Jars of the Struts Frameworks. Then you need to install jdk and server and then configure the JDK, web server like tomcat and GlassFish Server and struts frameworks. Here you will learn from where you can download? and how you can configure it?


Note:- We are using jdk1.5 and tomcat 5.0 in our all examples you can choose latest one .
Ø  Download JDK ,Tomcat and Struts Framework You can download it from following given like.
Ø  Java Development Kits:-  Download jdk1.6 http://developers.sun.com/downloads/
Ø  Struts Frameworks (Jars):- Download Struts 1.3.10 http://struts.apache.org/download.cgi#struts1310
Ø  Servers Download Tomcat 6.0.26:-Released Tomcat http://tomcat.apache.org/
Ø  Install JDK, Tomcat and Editor (IDE).
Ø  Set Java_Home (if you are using IDEs only)

·         Make a Web Work Space (like WISEDEVELOPERSTrutsExaples) or make a j2ee workspace in C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT directory.
Which includes WEB-INF . WEB-INF includes lib, web.xml, classes The structure of Web Work Space (like WISEDEVELOPERSTrutsExamples will be :
WISEDEVELOPERSTrutsExamples WEB-INF Lib web.xml classes index.jsp
Ø  Now extract the struts framework and copy all jars from lib and past it into lib folder of your workspace.
Ø  Make a struts-congif.xml into your WEB-INF and configure it into deployment descriptor file ( web.xml file) e.g. WISEDEVELOPER Struts Examples action org.apache.struts.action.ActionServlet
config /WEB-INF/struts-config.xml 1 action *.do Or WISEDEVELOPER Struts Examples action
org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml 1 action /do/*
We will cover more about this web.xml configuration files into our next section. Following is black struts-congif.xml .In struts-config.xml we configure Action classes , ActionForm plug-in etc
We will discus more about struts-config.xml in our next topic.
Your final workspace looks like WISEDEVELOPERSTrutsExamples WEB-INF Lib(All jars will put into lib folder) *****.jar ****.jar web.xml struts-congif.xml classes(All classes will put here) index.
jsp All JSP files,images,CSS etc will put here Now your Struts Workspace is ready. Now you can start to develop a struts application.

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More