Home Tutorialhelp Comment Struts 2 configuring with eclipse

 
 

Comment

zakir
Struts 2 configuring with eclipse,
December 11, 2007 at 12:47 PM

Setting up Jdk1.5.0_14
Download jdk-1_5_0_14-windows-i586-p.exe from https://sdlc1d.sun.com/ECom/EComActionServlet;jsessionid=05B140D09401F4E3D2EFA981799FDF5Cand setting up it on C:\Program Files\Java
Add system variable JAVA_HOME.
Variable Name: JAVA_HOME
Variable Value: C:\Program Files\Java\jdk1.5.0_14

Setting up apache tomcat5.5

Download apache-tomcat-5.5.25.exe from http://tomcat.apache.org/ and setting up it on C:\Tomcat 5.5.
Run tomcat5.5 from C:\Tomcat 5.5\bin and check whether OK or NOT by entering http://localhost:8080. If everything is fine then it will display Tomcat page for administrator.

Setting up Eclipse SDK 3.2.2

Download wtp-all-in-one-sdk-R-1.5.3-win32.zip from http://archive.eclipse.org/webtools/downloads/drops/R1.5/R-1.5.3-200702082048/ and extract in to your desired location.
Start eclipse.exe and choose the correct jre and tomcat server by following steps.
Select windowàpreferencesàJavaàInstalled JREs, Add JRE and make sure name and location are as follows:
Name: jre1.5.0_14
Location: C:\Program Files\Java\jre1.5.0_14
Again select windowàpreferencesàJavaàServer, Add server runtimes Apache Tomcat v5.5 and make sure Installed server runtimes are as follows:
Name: Apache Tomcat v5.5
Tomcat installed directory: C:\Tomcat 5.5
JRE: jre1.5.0_14

Building Struts 2.x application with Eclipse
1. Download struts2-blank-2.0.11.zip and unzip it.
2. Create new web application from FileàProjectàWebàDynamic Web Project. Name the project “struts2tutorial”.
3. Copy the entire .jar file from struts2-blank-2.0.11/WEB-INF/lib to struts2tutorial/WebContent/WEB-INF/lib.
4. Create pages folder to store .jsp pages in struts2tutorial /WebContent folder by FileàNewàFolder.
5. Create “index.jsp” in Struts2new/WebContent folder by FileàNewàOtheràWebàJSP.

Index.jsp






















































6. Create “HelloWorld.jsp” in Struts2new/WebContent/pages folder.












5. Create package “net.roseindia” on Struts2new/src folder and create “Struts2HelloWorld.java” in the new src/net/roseindia folder.




















6. Create “struts.xml”
7. Modify web.xml of struts2tutorial/WebContent/WEB-INF


























8. Create struts.xml file on struts2tutorial/src and struts2tutorial/build

























9. Select project properties and show “Apache Tomcat v5.5” as server runtime and “struts2tutorial/build/classes” as Java Build Path.

View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Struts 2 Tutorials

Struts2 Application in Eclipse: Running the application in Eclipse IDE
2 for configuring Eclipse IDE to use Tomcat 7 for deploying the Struts 2 application. Eclipse IDE will allow you to install and run Struts 2 application.... In the last section we have developed the Struts 2 Application in Eclipse IDE 

Struts Questions

tiles 2 with struts2 - Struts
tiles 2 with struts2   i wnat any one to guide me : how can i integrate struts2 with tiles2 i searched for long time on the web i see many code and configurations but every one of them has a problem can any one give me   

Struts 2 Tutorials

Struts 2 Hello World Annotation Example
Video tutorial of creating Struts 2 Hello World Annotation Example in Eclipse... the annotation for and then run the example from Eclipse IDE.  Now Struts 2... World application in Struts 2 version 2.3.15.1. We will use the Eclipse IDE 

Framework Questions

Struts 2
Struts 2  we can extend DispatchAction class to implement a common session validation in struts 1.x. how to do the same in the struts2 

Struts Questions

struts2 - Struts
struts2  hello, am trying to create a struts 2 application that allows you to upload and download files from your server, it has been challenging for me, can some one help  Hi Friend, Please visit the following 

Struts Questions

struts2
struts2  dear deepak sir plz give the struts 2 examples using applicationresources.properties file 

Struts Questions

struts2+hibernate - Struts
struts2+hibernate  How to use hibernate 3 with struts 2 application? kindly reply with example 

Struts Questions

Struts2 connection pooling - Struts
Struts2 connection pooling  Dear Friends , How to make connection pooling in "Struts 2 

Struts Questions

Struts2 connection pooling - Struts
Struts2 connection pooling  Dear Friends , How to make connection pooling in "Struts 2 

Struts 2 Tutorials

Introduction to Struts 2 Framework
Struts 2 framework We will use the Eclipse IDE development...Introduction to Struts 2 Framework - Video tutorial of Struts 2 In this video... of the Struts 2 Framework. The Struts 2 framework is very elegant framework 

Struts Questions

struts2
struts2   Sir when i have run my struts 2 web application,every time i get error " request resources is not available",,,what is this,,,plz help me 

Struts 2 Tutorials

Struts 2 Hello World Application using Eclipse
Creating Hello World application in Struts 2 version 2.3.15.1 using Eclipse... applications based on Struts 2 Framework. Here we have used Eclipse IDE for creating... will help you in writing your first Struts 2 applications using Eclipse IDE. You can 

Struts Questions

Struts2
Struts2  Hi, I need a solution for displaying success message in same page in struts2. how to redirect same page in struts2.Please help me.   hi friend, To know how redirect action can be done in struts 2 you can go 

Struts Examples

Struts 2 Eclipse Plugin
Struts 2 Eclipse Plugin       This page contains the examples and the list of plugins that are available for Struts 2... know the Eclipse plugin for Struts 2, kindly post in the following comment box 

Struts Questions

Struts2 Validation Problem - Struts
in the browser having the example of handling the error in struts 2. http... information on Struts 2 visit to : http://www.roseindia.net...Struts2 Validation Problem  Hi, How to validate field 

Struts Questions

Struts 2 - Beganner
Struts 2 - Beganner  Hi ! I am new to Struts2 and I need clarification over Difference between Action Proxy and Action Mapper in struts2 and When both perform their activity?????? Many Thanks Venkateshlu 

Struts Questions

Struts 2 + hibernate
Struts 2 + hibernate  How to integrate Struts 2 and Hibernate? Its... struts 2 and hibernate. Struts2.2.1 and hibernate integration application Integrate Hibernate to struts2 

Struts Questions

how to prepopulate data in struts2 - Struts
how to prepopulate data in struts2  I wanted to show the data from database using Struts 2 

Struts Questions

Value Retain in struts 2 - Struts
Value Retain in struts 2   Hi, I am trying to retain values in .jsp pages using struts2 tag.Can anyone help with the solution. Thanks in advance!  hi You go the following url. Get your solution 

Struts Questions

struts 2 problem with netbeans - Struts
struts 2 problem with netbeans  i made 1 application in struts2 with netbeans but got one errror like There is no Action mapped for namespace... is wrong between this don't knows 1) 2) /index.jsp 

Struts Questions

struts2 - Struts
Struts2 and Ajax Example  how to use struts2 and ajax 

Struts Questions

struts2 - Struts
struts2  how to pre populate the fields using struts2 from the database 

Struts Questions

Struts2 Helloworld problem -Please help - Struts
Struts2 Helloworld problem -Please help  Hi I am a beginner in Struts2. I tried some HelloWorld example in Struts2, to understand. But due to some... using Eclipse Europa, tomcat6.0.18. The following are the steps that I 

Struts Questions

Struts 2 Radio Button
Struts 2 Radio Button  I have a search functionlaity where i have two radio buttons and I am using Struts2 tag.I want first rado button to be selected by default.But when i select the second radio button and hit on search 

Struts Questions

configuring ready-made struts application - Struts
configuring ready-made struts application  I have a source of Struts... browser. The only information that I have was, the project is built on Struts... the step by step guide on how to configure Struts but to no avail. Can anyone 

Struts Examples

Struts 2 Tutorial
. Struts 2 Tools Struts 2 Eclipse... that are available for Struts 2 Development using Eclipse IDE.   ...Struts 2 Tutorial       

Blog

Sitemap Struts Tutorial
Login Application | Struts 2 | Struts1 vs Struts2 | Introduction...; | Struts 2 Eclipse Plugin | Struts 2 IDE | Struts 2 Application | Struts... | Set the mapping name | Set the action name | Configuring Struts DataSource 

Struts Questions

Diff between Struts1 and struts 2? - Struts
describes some differences between struts1 and struts2 Feature Struts 1 Struts 2...Diff between Struts1 and struts 2?  What are the difference in between Struts 1 and Struts 2?  Hi Gaurav There is a big difference 

Struts Questions

Struts2 - Struts
Struts2  Hi, I am using doubleselect tag in struts2.roseindia is giving example of it with hardcoded values,i want to use it with dynamic values. Please give a example of it. Thanks 

Struts Questions

Cannot run Struts 2 on IntelliJ Project - Struts
Cannot run Struts 2 on IntelliJ Project  I have been trying to run Struts 2 on IntelliJ IDEA for the past two weeks, can anyone help with basic example? starting from struts 2 configuration and installation. its very urgent 

Struts Examples

Struts 2 Training
Struts 2 Training       The Struts 2 Training for developing enterprise applications with Struts 2 framework. Course Code: STRUS-2 Duration: 5.0 day(s) Apply for Struts 2 Training Lectures 

Struts Questions

Struts 2 - Validation - Struts
Struts 2 - Validation annotations  digging for a simple struts 2 validation annotations example 

Struts Questions

Struts2 - Struts
Struts2  S:select tag is being used in my jsp, to create a drop down list. The drop down works very well in Mozilla, but in IE7 it behaves very weird, meaning that the drop down wen clicked it just jumps out from the first row 

Struts Questions

Struts 2
Struts 2  I am getting the following error.pls help me out. The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has 

Struts Questions

jsp to struts 2 action conversion problem - Struts
jsp to struts 2 action conversion problem  i have one jsp page that includes 3 other jsp pages(using RequestDispactcher).how to convert that jsp page to a struts2 action?among that one jsp page is wrritten using jpivot,wct tags 

Struts Questions

Struts 2 File Upload error
Struts 2 File Upload error  Hi! I am trying implement a file upload using Struts 2, I use this article, but now the server response the error... Upload In Struts2 Thanks 

Struts Questions

My first struts 2 program
My first struts 2 program  Hi, Please help me for my first struts 2... from one page to another. Details: I am trying my first Struts 2 example...: Struts2 Tutorials Thanks 

Struts Questions

struts - Struts
struts  Hi, i want to develop a struts application,iam using eclipse... you.  hi, to add jar files - 1. right click on your project. 2... for struts ,its well and good by the way one point i should say you can put 

Struts Questions

struts 2 tabbedpanel - Struts
struts 2 tabbedpanel  Hi Friend do I change the background color of a tab? bye bye 

Framework Questions

Struts 2
Struts 2   I am just new to struts 2 and need to do the task. I have a requirement like this : when i click on link like Customer , this will display all the customers , address from a database table using jdbc and the screen 

Struts Questions

eclipse - Struts
Eclipse keyboard shortcuts  I need a list of eclipse keyboard shortcuts.Thanks 

Struts Questions

Struts 2 problem - Struts
Struts 2 problem  Hello I have a very strange problem. I have an application that we developed in JAVA and the application works ok in Windows... seemed to worked fine, until the user reported to us a problem. After doing 

Struts Questions

New to struts2
New to struts2   Please let me know the link where to start for struts 2 beginners   Struts 2 Tutorials 

Struts Questions

STRUTS
STRUTS  MAIN DIFFERENCES BETWEEN STRUTS 1 AND STRUTS 2 

Struts Questions

STRUTS
STRUTS  MAIN DIFFERENCES BETWEEN STRUTS 1 AND STRUTS 2 

Struts Questions

select tag in Struts2 to handle Enums - Struts
! For more information on Select Tag in Struts 2 visit...select tag in Struts2 to handle Enums  I have an java enum in my object. I am trying to set its values from struts2 select tag. I tried with "#list 

Struts Questions

Struts 2 RequiredFieldValidator - Struts
What is Struts 2 RequiredFieldValidator? Need an Example or Code  What is Struts 2 RequiredFieldValidator? Need an Example or Code on Field Validation in Struts 2.  Please follow the following instruction:1. index.jsp 

Struts Questions

Struts
Struts  Why struts rather than other frame works?   Struts is used into web based enterprise applications. Struts2 cab be used with Spring... used struts2 in telecom, e-Learning and banking domain etc. Struts2 reduces 

Framework Questions

STRUTS2
STRUTS2  sir but my question is using ApplicationResources.properties in STRUTS 2.i cant get the values into my application.but in the exmple given at roseindia,u cant use the properties file.i use actionclass-validation.xml 

Struts 2 Tutorials

Architecture of Struts 2 Framework
Architecture of Struts 2 Framework In this chapter we will discuss about the Architecture and Lifecycle of Struts 2. This Struts 2 Architecture is based on WebWork and XWork framework. Struts 2 promotes the MVC framework 

Struts Questions

Struts2
Struts2  Hi I am using struts 2,In struts2 architecture ,I couldn't understand the purpose of ActionMapper and ActionProxy.My Question is,when the request comes into the picture,the filterdispatcher consult the ActionMapper 

Struts Questions

Struts 2 Integration with Struts 1
Struts 2 Integration with Struts 1  I want to integrate struts 2 with struts 1 existing application. Can you please help on how to go about this. I am not finding any good source to integrate struts 2 with struts 1 framework 

Struts Questions

Struts
Struts  Hi i am new to struts. I don't know how to create struts please in eclipse help me 

Struts Questions

dwr with struts2 - Struts
dwr with struts2  CAn u help me how to use dwr with struts2 

Struts Questions

struts
struts  in industry, struts 1 and struts 2. which is the best? which is useful as a professuional   Have a look at the following link: Struts Tutorials 

Struts Questions

struts2 folder struture - Struts
struts2 folder struture  Hi, I just want to know the exact folder structure required for the struts2 application? Its urgent 

Struts Questions

Struts2 UI - Struts
Struts2 UI  Can you please provide me with some examples of how to do a multi-column layout in JSP (using STRUTS2) ? Thanks 

Struts Questions

Cohabitation struts 1 and 2 - Struts
Cohabitation struts 1 and 2  Hi, I have a problem with the cohabitation of struts 1 and 2. I work on a web application which used struts 1. But i must add some functionality in struts 2. When i modify my web.xml file 

Struts Examples

Struts 2 Login Application
Struts 2 Login Application       Developing Struts 2 Login Application In this section we are going to develop login application based on Struts 2 Framework. Our current login application 

Struts 2 Tutorials

Struts 2 Ajax
Struts 2 Ajax       In this section, we explain you Ajax based development in Struts 2. Struts 2 provides built... to the Struts 2 framework. Ajax allows the developers to develop GUI like web 

Struts 2 Tutorials

Struts 2 Tutorials - Struts version 2.3.15.1
Struts 2 Tutorials - Struts version 2.3.15.1 Struts 2 Tutorials covered in this section is developed using the latest version of Struts 2 framework. Latest version of Struts 2 at the time of writing this tutorial is Struts 2.3.15.1. 

Struts Examples

Introduction to Struts 2
Introduction to Struts 2       This section provides you a quick introduction to Struts 2 framework. This section we are discussing the new features, struts 2 basics and architecture 

Struts Questions

Integrating Struts 2 with hybernate - Struts
Integrating Struts 2 with hybernate  Can anyone please help me how to integrate Struts 2 with hybernate. Is there any small project online fo the same? what is the advantage of integrating struts 2 with hybernate over normal 

Struts Questions

struts
struts  which is the best book to study struts on own? please tell me   You can learn struts through the following books: 1)Programming Jakarta Struts By Chuck Cavaness 2)Professional Jakarta Struts By James Goodwill 

Struts Questions

struts
struts  which is the best book to study struts on own? please tell me   You can learn struts through the following books: 1)Programming Jakarta Struts By Chuck Cavaness 2)Professional Jakarta Struts By James Goodwill 

Struts Questions

Starting with struts - Struts
Starting with struts  Hi friends! I'm new to RoseIndia & Struts. I downloaded struts 2 from Apache site, and unzipped its contents in my root folder..., configuring & running the sample pages in my browsers(IE 6 & firefox)? Thanks 

Struts-Tutorials

Struts 2 - History of Struts 2
Struts 2 History       Apache Struts...; Strut2 contains the combined features of Struts Ti and WebWork 2 projects... of WebWork2 has changed to Struts2. Hence, Apache Strut 2 is a dynamic, extensible 

Struts Questions

How to make a chat application using Struts 2 ?
How to make a chat application using Struts 2 ?  Hello, I'm working on my final year project. i've to add chat application in that. how it can be done? 'm using eclipse for that.... plzzz reply 

Struts Questions

Struts
Struts   1)in struts server side validations u are using programmatically validations and declarative validations? tell me which one is better ? 2) How to enable the validator plug-in file 

Struts Questions

Struts2 tags - Struts
Struts2 tags  Q1. i define a statement like " style= "visibility:hidden" in my struts2. this statement is not working. Can you please tell me the solution of this. Q2. if above code can not work then how can i do 

Struts Questions

query on struts2 - Struts
query on struts2  I am using struts2 for my application.i have a form that contains 'select' tag, for this i am getting values form DB. The problem is after i am submitting the form it is giving the following error 

Struts 2 Tutorials

Struts 2 version 2.3.15.3 released
Struts 2 version 2.3.15.3 released - Download and use the latest version of Struts 2 The latest version Struts 2, version  2.3.15.3 released... is designation as the the highest quality grade release. Apache Struts 2 is very 

Struts Questions

Struts 2 online tutorial
Struts 2 online tutorial  Where to learn struts 2 online tutorial? Is there any good tutorials on roseindia.net for learning struts 2 online tutorial?   Yes, We have many tutorials for learning Struts 2 online through 

Struts Questions

Help in Struts2
Help in Struts2  Hi, in struts 2 how to get the values from db and show in jsp page using display tag or iterator tag thanks in advance 

Struts Questions

struts 2 testing
struts 2 testing  can i get an example for struts 2 action class unit test 

Struts Questions

regarding struts 2
regarding struts 2   is it not possible to get values from applicationresources.properties into our application in struts 2 

Struts Questions

Where to learn Struts 2?
Where to learn Struts 2?  Hi, I am beginner in Struts and trying to find good tutorial to learn Struts 2 framework. My project is in Struts 2 and soon I have to work on the project. Let's know where to learn the Struts 2 

Struts-Tutorials

Struts 2, JPA and Hibernate Training
focuses on how to develop an application by using struts 2. Struts2 is used... Struts 2, JPA and Hibernate Training       The Struts 2, JPA and Hibernate Training for developing enterprise applications 

Struts 2 Tutorials

Struts 2 Hello World Example
are developing this tutorial using the Eclipse IDE. This Struts 2 video tutorial... IDE using Struts 2 framework: Steps to create first application in Eclipse...Struts 2 Hello World Example - Video Tutorial that shows how to create Hello 

Struts Questions

contains for list in struts2 - Struts
contains for list in struts2  Is there any way to check in the list or for existence of an enum ? Something like list.contains(string). iterating over list I want to do something like Display x display y 

Struts Questions

STRUTS
STRUTS   1) Difference between Action form and DynaActionForm? 2) How the Client request was mapped to the Action file? Write the code and explain 

Struts Questions

Struts2 blank application - Struts
Struts2 blank application  Hi I am new to struts2 and i am trying to run the strutsblank application by following the following Link; http://www.roseindia.net/struts/struts2/index.shtml As per the instructions given 

Struts Questions

STRUTS
STRUTS  1)Have you used struts tag libraries in your application? 2)What are the various types of tag libraries in struts? Elaborate each of them? 3)How can you implement custom tag libraries in your application 

Struts Questions

using displaytag with struts2 - Struts
using displaytag with struts2   Hi, i am using struts2 framework... it more simple and better to use than struts2 tag to generate the output on web page. Now, no doubt that struts2 is a very powerful framework to develop any 

Struts 2 Tutorials

Struts 2 Login Form Example
Struts 2 Login Form Example tutorial - Learn how to develop Login form in Struts 2 though this video tutorial In this video tutorial I will explain you how you can create Login form in Struts 2 and validate the login action 

Struts Questions

what is struts? - Struts
Commons packages. Struts encourages application architectures based on the Model 2...what is struts?  What is struts?????how it is used n what it hibrenate???etc can i use it on eclipse environment????  The core 

Struts 2 Tutorials

Struts 2.2.1 - Struts 2.2.1 Tutorial
Struts 2 hello world application using annotation Running... Implementing Actions in Struts 2 Chaining Actions in Struts Configuring Actions in Struts application Login Form Application 

Struts Questions

Java - Struts
Java  What is the difference between Struts and Struts2. Pls explain with a simple example.   HI, Please check http... between Struts 1 and Struts 2. Thanks 

Struts Questions

struts2 properties file
struts2 properties file  How to set properties file in struts 2 ?   Struts 2 Format Examples Struts 2 Tutorial 

Struts Questions

Struts 2 Video Tutorial
Struts 2 Video Tutorial  I think its easy to learn from Struts 2 Video Tutorial. What is the url of Struts 2 Video Tutorial on roseindia.net website... your are right. You can learn Struts 2 very easily with the Struts 2 Video 

Framework Questions

struts2 - Framework
and mainly i want support with tiles(struts 2)...now which struts2 jars i have to use...struts2  Hello, I am sathish.. I got problem in stuts2 ? Do tomcat5.5 support struts2 ? Now , currently my application running on tomcat 6 

Struts Questions

Struts
Struts  why in Struts ActionServlet made as a singleton what...;Basically in Struts we have only Two types of Action classes. 1.BaseActions...,MappingDispatchAction,SwitchAction,LocaleDispatchAction,DownloadAction. BridgeAction consists 2 

Struts 2 Tutorials

Struts 2 Interceptors
Struts 2 Interceptors Struts 2 framework relies upon Interceptors to do most... part of Struts 2 default stack and are executed in a specific order... tutorials about the Struts 2 framework 

Struts Questions

What is Struts 2 framework
What is Struts 2 framework  Hi, I am new to the Java web programming. I have completed JSP, Servlet and HTML. Now I want to learn Struts 2. Tell me what is Struts 2? Thanks 

Struts 2 Tutorials

Interceptors in Struts 2
Interceptors in Struts 2 Interceptors are conceptually analogous to Servlet Filters and are an important part of Struts 2 as it provides Struts 2... for complete process, groups of Struts 2 actions or for any combination of actions 

Struts Questions

struts 2 project samples
struts 2 project samples  please forward struts 2 sample projects like hotel management system. i've done with general login application and all. Ur answers are appreciated. Thanks in advance Raneesh 

Struts Questions

Struts 2 + Hibernate
Struts 2 + Hibernate  From where can i get good tutorial from integrating struts 2 with hibernate , which explains step by step procedure in integration and to build web applications 

Struts Questions

Working with Eclipse IDE - Struts
Working with Eclipse IDE  hello, i am beginner to eclipse . i want to run my first struts program in eclipse 3.2. what are the steps for running struts in eclipse . Any body plz, tell me the setting environment of eclipse 

Struts Questions

Time Picker in struts 2 - Struts
Time Picker in struts 2  How to create Time Picker in Struts 2 ? ...;head> <title>Struts 2 Time Picker Example!</title>...;</ul>2. struts.xml (Add the following code)<action name=" 

Framework Questions

Struts application by using eclipse
Struts application by using eclipse  Can we develop struts application by using eclipse ? If no then please provide other development tools, if yes can you mail me the tutorial or provide the same in roseindia 

Advertisements Advertisements
 

 

 

DMCA.com