User Comments for the tutorial:

Running and Testing Struts 2 Login application



SR Analyst
I get following error. Using Tomcat 6.0 JDK 1.6_04 There is no Action mapped for namespace /roseindia and action name showLogin. - [unknown location] How do I resolve this problem? 

Struts2 Application
Login Application" link. Then your browser will display the ... There is no Action mapped for namespace /roseindia and action name showLogin.  

confused in short-circuit
I was wandering if the "short-circuit" in validation can work correctly,whether I set it "true" or "false",I get the same result. Is this a BUG of Struts2.0,or I have done it in the wrong way?Hope somebody could be so kind to help me!!! 

@Chris, Open your index.html file,which is in \webapps\struts2tutorial directory, with notepad and check if the format of the file is correct. If not then correct it and the application should work. If it still doesn't work replace the content 

@ Jasmine
i am using tomcat6 as well as jdk1.6_07 and seriously, this does not work:( and I really need to get this working! I can get to http://localhost:8080/struts2tutorial/ but when i click on the link, it gievs me the no action mapped error : 

No Action mapped Error - Solution
Hi All, Most of us are getting the "no Action mapped " error. Please keep your configuration file (struts.xml) in your class path and then try again. I did the same and its working.  

There is no Action mapped for action name
Hello! First of all sorry for my little english. For those who encountered problems of type "There is no Action mapped for action name..." I resolved in this way: -index.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "htt 

struts 2 short-circuit
i am also facing same problem. i used short-circuit in validation.xml.but it is not return seccess can any one help me regarding this one? 

no Action mapped
hi chris, please check your struts.xml <action name="doLogin" class="hello.Login"> put your action class there. thanx 

CSS Stylesheet problem
My style sheet is not working. All the other functionality works fine. The css file is stored under struct2tutorial\css\main.css. I'm using Tomcat 6.0 for my testing and NetBeans 6.7 for development. The application is run via NetBeans internal de 

To Chris
Put the struts.xml in your class directory. Then it should work fine. Is Eclipse this would be the "Java Resources: src" directory /Che 

There is no Action mapped for namespace / and acti
There is no Action mapped for namespace / and action name showLogin. I am getting that error if I follow exactly. Please let me know how I can resolve that 

Related Tutorial and Articles
Struts Questions

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

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 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 : Validation Problem  Hi, How to validate field 

Struts Questions

Struts 2 + hibernate
Struts 2 + hibernate  How to integrate Struts 2 and Hibernate? Its urgent please help!!   See the example give below.. for integrating struts 2 and hibernate. Struts2.2.1 and hibernate integration application Integrate 

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 - 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

Pagination in struts 2
Pagination in struts 2  Hi, I have one question regarding pagination in struts 2 I saw one of your code that you explain here:- in this example you guys 

Struts Questions

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

Struts Questions

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