| |
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.
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.
|
|
|
Commented By -> salish | please help me to begin with Struts2 in MyEclipse6 with JBoss4.02GA with MySQL5 |
| |
|
|