Advertisement
Home > Struts Struts 2 Example Tutorial > Struts Eclipse MVC > Step by step demonstrationPlease log in to add or reply to any matter<- requires login or
RMI Example

Home > Struts Struts 2 Example Tutorial > Struts Eclipse MVC > Step by step demonstration
Struts Tutorials:
Struts2 Tag CheckBoxList
, Checkbox, Iterator, IF
Struts2 Tag Library Example Struts2 Tiles Example Struts2 Tiles I18N Example Struts2 Questions Struts Tiles I18N Example Struts Eclipse MVC Struts2 Tags Struts2 Example and Tutorial Struts MVC Struts2 Validation
Hibernate Tutorials: Hibernate Case Study Class Hierarchy Persist Example Using Hibernate Interceptor Hibernate Questions with Answer Hibernate Many-to-Many Mapping Example Hibernate one-to-many Mapping Example Hibernate and ORM tools Spring Hibernate Example Hibernate SessionFactory Example Hibernate Mapping Class Hierarchy Hibernate Questions Hibernate SessionFactory Questions Spring Hibernate Example: Spring Hibernate Case Study

Written By : Amit
Title :
MVC Struts
Description : Some facts about MVC Framework and Struts
More...


Written By : Amit
Title :
Struts2 example tutorial
Description : My First example using Apache Struts2
More...


Written By : ISHTEK
Title :
Struts2
Description : Tags such as IF Iterator Tags
More...


Written By : guddu
Title :
Struts Eclipse MVC
Description : Step by step demonstration
More...


Written By : Girish
Title :
Struts Tiles I18N Example
Description : Code with Sample Action
More...

Struts, Struts2 Tutorial, Struts 2 Example, Struts2
Author : guddu
Date (Year/Month/Date): 2009-03-15 Step by step demonstration of creating a example enterprise project
Part 1
Step by step demonstration of creating a example enterprise project
(with EAR packaging and deployment) using Eclipse version 3.4.1
from http://www.eclipse.org.

And showing an example Struts v1.1 based web application, with Tiles
and Message or i18n features.

Advertisement
Software environment used for setting up this example environment as follows: 1. JBoss 5.0.0 as application server 2. JDK 1.5 as compile and runtime environment. 3. Eclipse (Genymede) as IDE. Steps include: 1. While opening Eclipse (Genymede) IDE, choose appropriate workspace to be created at the desired file system folder. 1. Creating an Enterprise Application Project, by using right click menu on Navigator view->New->Project->Java EE-> Enterprise Application Project(Select)-> Next(Button on wizard)-> Enter project name : sample-ear (for this example) Use default checked Target Runtime->New (Button)->JBoss(expanding)->JBoss v5.0(Select) ->Next(Button)-> JRE:(Either Installed JRE Preference/Select JRE or JDK 1.5) Application Server Directory: (Select appropriate server folder or JBoss_Home directory)->Finish EAR version Select as 5.0 Configuration: Default Configuration for JBoss vx.x.x->Next (Button)-> Check "Generate Deployment Descriptor"->Finish (Button). (You may see some error for the WAR project not attached to this EAR project.) 2. Creating a Dynamic Web Project, by using right click menu on Navigator View->New->Web->Dynamic Web Project->Next-> Project Name: sample-web(for this example) Use default Target runtime: JBoss vx.x.x Dynamic Web Module Version: 2.5 Configuration: Default Configuration for JBoss vx.x.x EAR Membership check Add project to an EAR EAR Project Name select sample-ear(for this example)->Next (Button) -> Context Root: ----- Content Directory: ------ Java Source Directory: ----- check "Generate Deployment Descriptor" ->Finish Once both the Enterprise and Dynamic web application projects are configured, then comes steps for putting example Struts web application files and putting all the pieces together for deploying an example Struts v1.1 web application to JBoss application server. In order to make this dynamic web application as Struts compatible, we need to copy following JAR files from the Struts package to the WEB-INF\lib folder:
  • antlr.jar
  • commons-beanutils.jar
  • commons-digester.jar
  • commons-fileupload.jar
  • commons-logging.jar
  • commons-validator.jar
  • jakarta-oro.jar
  • struts.jar
  • Please read all the license files/agreements of all the software mentioned in this Page and advised, before use. Author of this Page shall not be held responsible for any issues arise out of using any of the software mentioned in this Page. More to come in other parts of this write-up.
    Advertisement

    Commented By ->
    salish
    please help me to begin with Struts2 in MyEclipse6 with JBoss4.02GA with MySQL5
    Please write your Comment on this Matter
    (This will be visible if found suitable):
    Name: *
    Email (will not be displayed): *
    Matter: *
    21,19
    Enter bigger number from above :*
    Home > Struts Struts 2 Example Tutorial > Struts Eclipse MVC > Step by step demonstration
    Visitor/User submitted related resources:
    (Visible upon review and approved by this site Administrator)
    
    Referred By Name *:
    Resource URL *: (e.g, URL should be starting with http://www.-----.---)
     
    Resource Short Description *:
    36,10
    Enter bigger number from above : *

    Please log in to add or reply to any matter<- requires login
    Log in or Register
    This List is generated as on 2009-07-12 (YYYY-MM-DD)
    #Discuss-these : questions-and-answer : Interview-Questions-on-Java #Some-facts-about-MVC-Framework-and-Struts : MVC-Struts : Struts-Struts-2-Example-Tutorial #My-First-example-using-Apache-Struts2 : Struts2-example-tutorial : Struts-Struts-2-Example-Tutorial This article discusses steps of creating a Struts2 based example web application With lots of easy to understand explaination and source code for reference. #Tags-such-as-IF-Iterator-Tags : Struts2 : Struts-Struts-2-Example-Tutorial #Step-by-step-demonstration : Struts-Eclipse-MVC : Struts-Struts-2-Example-Tutorial #Code-with-Sample-Action : Struts-Tiles-I18N-Example : Struts-Struts-2-Example-Tutorial #open-for-discussion : Struts2-questions : Struts-Struts-2-Example-Tutorial #with-Code-and-article : Struts2-Tiles-Example : Struts-Struts-2-Example-Tutorial #with-code-explained-article : Struts2-Tiles-I18N-Example : Struts-Struts-2-Example-Tutorial #Tutorial : Struts2-Tag-Library-Example : Struts-Struts-2-Example-Tutorial #Code-and-Tutorial : Struts2-Tags-Example : Struts-Struts-2-Example-Tutorial #Step-By-Step-Code : Radio-Tag-Example : Struts-Struts-2-Example-Tutorial #Struts-2-Code : Struts2-Validation-Example : Struts-Struts-2-Example-Tutorial #Struts-2-Example-with-Code : Struts2-HibernateSession-Plugin : Struts-Struts-2-Example-Tutorial
    Copyright © 2008-2009, Interview-Questions-Tips-Forum, All Rights Reserved.
    CONTACT    PRIVACY POLICY    DISCLAIMER
    
    This web site provides some of the information about various technologies, example 
    code, tips, tutorials etc. Like any printed matterials, content of these pages may 
    become out of date over a period of time. Therefore all visitor/users of this web 
    site are requested/advised to refer to the originating parties/sources for the 
    latest changes and happenings for detailed information. This information is not 
    intended to be a substitute for the original reference provided by the originating 
    parties/sources.