Home Tutorialhelp Allcomments Struts Struts Struts Hello World Files

 
 

Comments

 
User Comments for the tutorial:

Developing JSP, Java and Configuration for Hello World Application



Advertisement
Comments

need to run hello world in Eclipse 3.2
hi, Need to run the application in eclipse 3.2. can anybody help me in this regard for running the HelloWorld application. 

Tutorial doesn't work
Hello, a few things seem wrong in this tutorial: - how are we supposed to get that Struts 2 tutorial? we never altered index.html from the blank war file. - the build.xml creates the "classes" folder under the src folder, and not under WEB-INF; do 

package name in struts.xml
The HelloWorld.jsp has to be located in struts2tutorial\roseindia\pages NOT in struts2tutorial\pages as mentioned. The package namespace /roseindia in struts.xml anticipates HelloWorld.jsp in struts2tutorial\roseindia\pages. It took me a while to fi 

Struts 2 tutorial clarification
HI, - We have added index.html file to add the link to call all the tutorials present. You can remove index.html with your project file. - the build.xml creates the "classes" folder under the src folder... Acuall build.xml file first compiles 

Running struts 2 application
Hi Karthik, Run Struts 2 application on Tomcat 6 server. Thanks  

this app is not working.....
hey let me tell you one thing...... the people who are new to struts2 will try to execute the application but this is not working . it disappoints me a lot. ............Madhu 

Running code
Hi Madhu, You download the code and then install on the tomcat. It will work. If you find error please post here. Thanks 

Error on Struts 2 sample code
I am trying to execute this in Tomcat 5 and i am gettting this error. NFO: Installing web application at context path /struts2tutorial from URL file:D:\Tomcat 5.0\webapps\struts2tutorial Jul 30, 2007 7:12:26 PM org.apache.catalina.core.StandardCo 

Struts 2 Tutorial
I known that the full integrated application working but application from tutorial doesn't work. It's good tutorial but maybe some more examples add for work(testing and learn Struts 2) without errors. Thanks 

View the Comments
this tutorial is not perfect first of all the first jsp is not there to be ...ie homepage.jsp .....rest all is fine but plz provide the full information one more thing is missing out from this for which i had faced the problem is Xalan.jar file is mi 

struts2 in eclipse 2
Here is a work around to get it working in eclipse 3.2. Get WTP plugins for eclipse. Create DynamicWebProject. The below is what the project structure will look like: projectname --> Name of the projct in eclipse src com.yourcompname  

Mr
your configuration does'nt work. I tested twice. 

tutorial
this is tutorial ??? step by step ? sorry but I think that is some sh... . When we create tutorial we must do this good ... and without problems then application must run (here is that ?) 

Struts 2 code download
Hi Mahendra, I have just added a link to download the full integrated application. You download the application and then deploy it on your server. We have fully tested the application so it will 100% work. Thanks Deepak Kumar  

The machinery mapping *.action to struts.xml file
The article says that "By default web.xml file of struts blank application is configured to route all the request for *.action through org.apache.struts2.dispatcher.FilterDispatcher." and the configuration of web.xml is highlighted. The question  

Where to keep the struts.xml
Hi, I am also getting the same error when i try to submit a page . """ There is no Action mapped for action name "" I think the problem is how/from wehre the struts listner picks up the struts.xml, it seems the problem is where to keep the  

struts.xml - There is no Action mapped for action
Hi, I am also getting the same error when i try to submit a page . """ There is no Action mapped for action name "" I think the problem is how/from wehre the struts listner picks up the struts.xml, it seems the problem is where to keep the  

the ant doesn't work?
Hello, I've tried the download code there is no problem but when I rebuilt the project using the ant build.xml,the execution of bach is ok but the project doesn't work on tomcat. Did you have the same problem? Have you solve? Thank you  

An error
I've got an error listed below after running example downloaded from your webpage (got the same while trying to do this step by step using tutorial). And yes, I'm using tomcat 6.0. Struts Problem Report Struts has detected an unhandled except 

Reason for an unhandled exception:
Hi, when I followed the tutorial by creating files as explained, I got the below error when I have run the application. Struts Problem Report Struts has detected an unhandled exception: # Messages: There is no Action mapped for action name  

Error
Hi it downloaded your zip file and extracted it to my webapps folder in Tomcat5.5. However this example does not seem to work and i get 404 error(other apps with struts 1.1 work fine) Even the examples given in Apache's Struts site does nt work. Wi 

after Rebuild it is not working
Hello, I've tried the download code there is no problem but when I rebuilt the project using the ant build.xml,the execution of bach is ok but the project doesn't work on tomcat. Did you have the same problem? Have you solve? Thank you  

Working
Download the source code from the link provided and place the extracted content in the webapps folder of tomcat it will work. 

The solution
Problem: Struts has detected an unhandled exception: Messages: There is no Action mapped for action name HelloWorld. Solution: You should also modify the index.html, which the author maybe have omitted. The problem exist in the following: <M 

struts 2 hello world application
hi, after i download and run i got the error msgs below. C:\Tomcat\webapps\struts2tutorial\WEB-INF\src>ant Buildfile: build.xml clean: [delete] Deleting directory C:\Tomcat\webapps\struts2tutorial\WEB-INF\classes [mkdir] Created dir:  

Null Pointer exception in Struts2HelloWorld
I downloaded "struts2-blank-2.0.9" and configured it as per this site to run the Struts2HelloWorld application. The build was successful. ---------------------- Buildfile: build.xml clean: [delete] Deleting directory C:\Program Files\A 

Struts 2 Tutorial
I had the same problem encounter: Struts has detected an unhandled exception: Messages: There is no Action mapped for action name HelloWorld. I had follow the tutorial and also update the index.html Anyone got the solution? Thanks 

Struts 2 Hello World Example Issue
Dear All, The only missing link in successful execution of this application is that you need to modify the index.html, which is not mentioned in the steps. Change the index.html file, and it works. Here is the file: ****** index.html... *** 

com.opensymphony.xwork2.ActionSupport
Hi , "class file has wrong version 49.0, should be 48.0" This error is coz of the jdk . Install jdk 1.5.x and dont forget to set your classpath. 

Error still
still get the error message "There is no Action mapped for action name HelloWorld" even after I used the new index.html file. 

NullPointerException (STRUTS 2)
WHEN WE OPEN ANY JSP PAGES WHY IT SHOW ON BROWSER : java.lang.NullPointerException org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58) plz sent me response hurry thanks & regards 

Build error solution
Hi, I had the same problem and solution of it was to install JDK 1.6, my old version was 1.4 

Is it correct?
Hi, are you sure that struts.xml is correct? I think entries should follow in a different order 

i want some latest reviews
Hello....this is nice site for learners even... am thankful to this site... Thanking You, Regards, Ramana Reddy 

Plz help
I've placed my struts.xml file in classes directory and do some modifications in build.xml as it generate errors. 1. target name="prepare" copy file="classes/struts.xml" todir="src/classes" 2. target name="clean" delete dir="src/classes" m 

Hi Stefan
Stefan, Download the source code from the above given link and see how index.html updated... hope you manage to get this work Harshi 

HTTP Status 500
I modified the index.html and launched http://localhost:8080/Struts2Tutorial/index.html this is not mentioned either and fails on tomcat 6.0.14 so I tried on 5.5.23 and it worked. Not sure why, but it runs! 

Struts2 - action not find
I am using struts2 in netbeans.While running the programm i am getting servlet Exception action not mapped -------------- index.jsp ---------- 

regarding helloworld application
hi i too got the same error messages when ant is run D:\JAVA\Tomcat 5.5\webapps\struts2tutorial\WEB-INF\src>ant Buildfile: build.xml clean: [delete] Deleting directory D:\JAVA\Tomcat 5.5\webapps\struts2tutorial\WEB-IN F\classes [mkdi 

ANT?
"I am assuming that you have already installed ant build tool on your machine." Why are you assuming that? this ant-thing has not been mentioned earlier and there is no link to it, correct me if I am wrong. 

ANT?
What is this ant-thing? there is no link to it? 

index
How should I change the index file? What more do I have to do to make this work? Has anyone managed to get this to work, or does anyone know a working tutorial plz help. Thanks Stefan 

BUILD FAILED
I too got the same error... ================================================= C:\Program Files\Tomcat 5.5\webapps\struts2tutorial\WEB-INF\src>ant Buildfile: build.xml clean: [delete] Deleting directory C:\Program Files\Tomcat 5.5\webapps\ 

I got a struts problem reports like this
Struts Problem Report Struts has detected an unhandled exception: Messages: There is no Action mapped for action name HelloWorld. -------------------------------------------------------------------------------- Stacktraces There is  

no Action Mapped
Trying to follow this tutorial but I too get # Messages: There is no Action mapped for action name HelloWorld. Stacktraces There is no Action mapped for action name HelloWorld. - [unknown location] com.opensymphony.xwork2.DefaultAct 

try that..
I found the same problem and i could continue with tutorial configuring DevMode to false. Then the message disspeared. I hope be helpfull 

There is no Action mapped for action name HelloWor
Hi, I too got the same error: There is no Action mapped for action name HelloWorld. Best regards, Mounir 

Error
I am unable to download the source code. It's giving the invalid archive file error. kindly solve the problem ASAP. thanks, Nagesh Bemini  

at com.opensymphony.xwork2.DefaultActionProxy.prep
can some body explain why Iam getting the following error "SEVERE: Could not find action or result There is no Action mapped for action name testAction. - [unknown location]". I guess there is lot of mismatch with the jars that apache published, a 

still getting same error
I tried the below change, but I'm still getting the same error. Does this thing work? 

Build war file
I wonder why the ant doesn't build the war file so that I can work within Eclipse and deploy the war file to TomCat webapp directory, instead of working in TomCat webapp directory. Only jar file is built but war is mention in 'dist' target.  

solution
I found the solution. The problem is the namespace. This was set as /roseindia in the struts.xml file: <package name="roseindia" namespace="/roseindia" extends="struts-default"> Instead, do this: <package name="roseindia" extends="struts-d 

Error while trying..
Hi, After i did everything i got the status error,"There is no Action mapped for action name HelloWorld." Can anybody tell why this doesnt maps? Also, I dont use ant. But i do it using JDK1.5. Is there any problem using JDK1.5 to compile it 

Error
Hi, After i did everything i got the compilation error. that is C:\Program Files\Tomcat 5.5\webapps\struts2tutorial\WEB-INF\src>ant Buildfile: build.xml clean: [delete] Deleting directory C:\Program Files\Tomcat 5.5\webapps\struts2tutoria 

ANT Build fails
When I try to run my "ant" command. I am getting the following message.. BUILD FAILED java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.getFileUtils()Lorg/apache/tools/ant /util/FileUtils 

ANT Build fails
C:\tomcat5028\webapps\struts2tutorial\WEB-INF\src>ant Buildfile: build.xml BUILD FAILED java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.getFileUtils()Lorg/apache/tools/ant /util/FileUtils; at org.apache.tools.ant.taskd 

try ...
Make sure you stop tomcat then remove the jar file you built .. C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\struts2tutorial\WEB-INF\lib then restart with the required change and your good to go 

no Action mapped for action name HelloWorld
Change the index.html file it will work. the tutorial doesnt say that explicitly. The file is available at the source code struts2tutorial.zip http://www.roseindia.net/struts/struts2/struts2tutorial.zip 

There is no Action mapped for action name HelloWor
The solution was posted above: This was set as /roseindia in the struts.xml file: <package name="roseindia" namespace="/roseindia" extends="struts-default"> Instead, do this: <package name="roseindia" extends="struts-default"> 

wont change index.html
Hi, I have a weird problem. When I go to the address: http://localhost:8080/struts2tutorial/index.html the application works fine, however if I go to http://localhost:8080/struts2tutorial/ then the application redirects me to the http://localhost:808 

implement extra features
every thing is good but implement extra features in jdbc it not enough so pls do this . 

Re: There is No Action Mapped for Action Name
Hi Andrew I tried the solution posted by you to remove the namespace entry in the package tag. I still see the same error. Was anyone else successful in resolving this error? Thanks Krishna 

Thanks for your posted solution for Unkown Action
I was stucked in the similar problem that Action is not mapped for unknown action error. I have removed the namespace from struts.xml and the application runs properly. 

No Action mapped
I just downloaded the source code and placed it under tomcat/webapps. when i try to run the application I get this message: Struts Problem Report Struts has detected an unhandled exception: Messages: There is no Action mapped for action name H 

Regarding ant build tool
In the helloworld application while building the application ant build tool is used...can any one tell me about this installation...where to install...what is the settings we have to do...i have istalled this from apache site...but where to install i 

whenever I put web.xml, my application not start
I am new to struts 2. I have problem to start the sturts 2 framework. Whenever I put web.xml under WEB-INF direcotry, the application starts to fail, but it works when I remove web.xml. Does anyone oan tell why? Thanks, -- Allen -- 

Help me
My Struts2 application not run. it gives 404 error.Why? i am just download file and put it to web app for sample application but it gives the resoureces not found 404 error. i am using tomcat 5.0 java 1.5 Where the problem please tell me? 

help
hello, so , thanks a lot for all those samples,there are a explained verry well ... thank's . i have a problem with my HelloWorls sample , i use the IDE eclipse 3.3 , his structure is diffrent par rapport the othrs version of eclipse and  

help me
hello, so , thanks a lot for all those samples,there are a explained verry well ... thank's . i have a problem with my HelloWorls sample , i use the IDE eclipse 3.3 , his structure is diffrent par rapport the othrs version of eclipse and i didn't k 

help sample app
Please can someone fix the cannot find action error? i have tried the things the previous commenter suggested and it is still not working  

thanks
thanks a ton dude...i had already spent 1 day on it 

no Action mapped for action name HelloWorld.
Trying to follow this tutorial but I too get # Messages: There is no Action mapped for action name HelloWorld. Stacktraces There is no Action mapped for action name HelloWorld. - [unknown location] com.opensymphony.xwork2.DefaultActionProx 

help
This is fine... just forget the index.html, it's here: [code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>RoseIndia.Net Struts 2 Tutorial</title> </head> <body> <div align="center"> <center> < 

mrs
Thank u very much for ur comment.....i was facing the same prob.....after removing namespace its wrking fine.....thank u. 

Struts 2 Example
When i tried to run my first Struts 2 Application I got this error. org.apache.jasper.JasperException: java.lang.NullPointerException  

Developer
I'm having problems running this. I've followed the instructions closely, but get a message "There is no Action mapped for action name HelloWorld."  

THANKS FOR THE STARTUP EXAMPLE
The error comes because we are trying to put the jar file in lib directory as well as the compiles classes in the classes directory .. please remove all the directory from the classes directory if u are using ant... 

Excellent Tutorial
It was really inspiring for me to go through this tuorial.I would be really proud to & eager to see more tutorials like this to improve our knowldge. 

Struts problem
Hi! I'm having a problem when i test the application "Hello World Application" When i start the application on Tomcat, it appears the following message: Struts Problem Report Struts has detected an unhandled exception: # Messages: There is  

struts demp
it is good and i want to learn from u r site 

request
My Struts2 application not run. it gives 404 error.Why? i am just download file and put it to web app for sample application but it gives the resoureces not found 404 error. i am using tomcat 5.5 java 1.5 Where the problem please tell me?  

problem loading the page
everytime i put the localhost 8080/strutstutorial it takes me to some example folder and runs the other helloworld.jsp 

There is no Action mapped for action name HelloWor
The tutorial does not specify the changes to be made in the index file. Please download the source file given at the end of this tutorial, "struts2tutorial.zip". Your default index file contains "URL=example/HelloWorld.action" which should be "URL=ro 

There is no Action mapped for action name HelloWor
I followed all the instructions carefully, yet getting the following error! "There is no Action mapped for action name HelloWorld." somebody suggested removing all directories from classes, the one in WEBINF is empty and the one in src has net( 

Struts has detected an unhandled exception
Struts has detected an unhandled exception: Messages: No result defined for action com.coin.fk.SalesShipmentAction and result input File: file:/H:/sample/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/coinsprakash/W 

Fix
Plz check your web.xml welcome file list to be <welcome-file>index.html</welcome-file> edit index.html and correct the element to be <a href="net/roseindia/HelloWorld.action">Run Struts 2 Hello World Application</a> It should work fine after th 

doubt
Respected sir i run struts2tutorial Helloworld example in above tutorial.but it will give errors something like this "There is no Action mapped for action name HelloWorld".so please give me the correct solution for this erro 

Filter start Error in Tomcat
I wonder how come any body posted question on this issue. its a official problem from struts, I was facing this problem deploying hello world application finally found the solution to it. Refer: https://issues.apache.org/struts/browse/WW-1820  

There is no action mapped for HelloWorld
Check for the existence of index.html in /webapps/struts2tutorial. If not present, copy from the source code download or create one.  

Getting Exception starting filter struts2
EVERE: Exception starting filter struts2 Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean - jar:file:/C:/Ranjith/J2EE%20Enviornment/MyEclipse_WorkSpace/struts2tutorial/W 

Getting error while running the example
Struts Problem Report Struts has detected an unhandled exception: # Messages: There is no Action mapped for action name HelloWorld. Stacktraces There is no Action mapped for action name HelloWorld. - [unknown location] com.opensymphony. 

Compilation Error
[javac] Compiling 1 source file to C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\struts2tutorial\WEB-INF\src\classes [javac] C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\struts2tutorial\WEB-INF\src\java\net\rosei 

comment on tutorial
this is simple and beautiful tutorial 

Struts
Help for struts 

Struts 2 Hello World Application
Following the instructions for setting-up the application resulted in failure. I found I had to move the pages folder under WebContent to get it to work.  

404 Error
Hi!! I'm a new learner in struts and liked the content in this site.. but facing problem in running as i receive 404 error. guess some user have received the same.. can someone pls help.. also how can i see the solution for previous queries.. thnx in 

downloaded sample code not working
when i start tomcat it gives the following error in log. 2009-10-03 16:55:03 StandardContext[/struts2tutorial]Exception starting filter struts2 javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.Transfor 

error in struts with netbeans
how to solve exception package com.opensymphony.xwork2 does not exist 

"There is no Action mapped for HelloWorld" issue
Instead of http://localhost/struts2tutorial/, type http://localhost/struts2tutorial/roseindia/HelloWorld.action. This will show the newly created page. Alternatively, update struts2tutorial\index.html to have URL as "roseindia/HelloWorld.action" i 

getting error in Struts 2 Hello World Application
Thanks for the example first of all. i deployed the example succesfully ,after that when i clicked on "Run Struts 2 Hello World Application " link i am getting the below error. org.apache.struts2.dispatcher.Dispatcher serviceAction SEVERE: Coul 

"no Action mapped" error
I fixed the "no action mapped" error by editing index.html and changing the meta tag as follows: &lt;META HTTP-EQUIV="Refresh" CONTENT="0;URL=roseindia/HelloWorld.action"&gt; The tutorial doesn't mention changing it and as-is it redirects to th 

COMMENT
Its beautiful.But it can be more helpful if you can provide example based on some IDE (Eclipse). Defining each and every step wrt the IDE will be more helpul. But still its very nice. Thanks 

faced difficulty in running first struts2 applicat
thanks for the tutorial. the application has given the message action not found. after long struggle and correcting the package name to net.roseindia i could run. if the correction is justified make necessary changes so that other learners don 

Thanks for Solution
Hi, Being a new-bee I was struggling for long to find solution doing google and trying out many things but nothing worked. Thanks for this simple solution. Regards, Vikash Anand 

Good but incomplete
The tutorial out here is not correct and there are some loose gaps which takes asses of the newbie to figure out... anyways after spending good amount of hours finally able to run the example.. 2 imp things missed out here.. 1> in the web.xml a 

pls correct the following changes
The tutorial out here is not correct and there are some loose gaps which takes asses of the newbie to figure out... anyways after spending good amount of hours finally able to run the example.. 2 imp things missed out here.. 1> in the web.xml a 

After Session Time out on action user must redirec
Problem - We need to check if session time is out or server restarted, anyhow session is lost then user must redirected to login page with message “Session Expired. Please Re-login.” The way I try to resolve above problem is – I write an custom in 

struts has detected an unhandled exception
When following the tutorial I get the following error message: Struts has detected an unhandled exception: # Messages: There is no Action mapped for action name HelloWorld. 

overcoming from errors isp
i dont know i usually got errors of 404 file not found and error 500...suggest me the solution for this 

strut2 with tomcat 5.5
error--'ant' is not recognize as internal and external inn the command prompt for jar file 

The problem still persists
I've tried every solution that has been mentioned.. but the problem is still there. Can someone help me?  

Thanks for the help problem solved!
Thanks for the help I just followed bill edwards and andrew's tips and it work! you just need to remove the namespace=/roseindia to make it blank. 

Feedback
Very Nice and informative to learn Struts2 clearly.... Thanks Regards Veekshith 

no action map
this tutorial is good..and make sure to include web.xml as because of it it gv errors.. 

software engineer
nice tutorial. good and simple coding standards. 

did this code work?
com.opensymphony.xwork2.ActionSupport; Where is this package? 

Related Tutorial and Articles
Struts 2 Tutorials

Struts 2 Hello World Application using Eclipse
Creating Hello World application in Struts 2 version 2.3.15.1 using Eclipse In this example we will learn how to make a Hello World Example in Struts 2...="/Struts2HelloWorld/roseindia/HelloWorld.action">Test Struts 2 Hello World example!!< 

Struts 2 Tutorials

Struts 2.1.8 Hello World Example
Struts 2.1.8 Hello World Example     ... to develop simple Hello World example in Struts 2.8.1. You will also learn how... started with the Hello World tutorial using Struts 2.1.8: The web configuration 

Struts 2 Tutorials

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

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 

Struts-Tutorials

Struts 2 Hello World Application Example, Learn how to develop Hello World application in struts 2.
Struts 2 Hello World - Developing Hello World Application...; In this section we will develop Hello World application based on Struts 2 Framework. Our Struts 2 Hello World application is your first step towards 

Struts-Tutorials

Developing JSP, Java and Configuration for Hello World Application
and required configuration files for our Struts 2 Hello World application. Now... on the "Run Struts 2 Hello World Application" link on the tutorial...:8080/struts2tutorial/ and then select "Run Struts 2 Hello World Application" from 

Spring Framework

Spring MVC Hello World Example
Spring MVC Hello World Example       Spring MVC Hello World Example in Spring 2.5 In this tutorial we... will use tomcat to run the example. Eclipse provides the way to easily run 

Wicket

"Hello World" example in Wicket
;     Hello World example is everybody's...; example we need to create following three files: HelloWorldApplication.java... is that you need to keep all these three files in a same folder. Here is the example 

PHP Tutorial

Smarty Hello World Program
How to write "Hello World" program? In any smarty program we need two files: a) .php file and b).tpl file.     i) .php file: Which...;//enable the caching   $smarty->assign ('name', 'hello world 

Struts 2 Tutorials

Developing Hello World application
Hello World Example A Hello World Example given below which shows the basic... the example</p> <b>Hello World Example</b><br> <a href="roseindia/HelloWorld.action?request_locale=en">Hello World 

Advertisements Advertisements
 

 

 

DMCA.com