Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 There is no Action mapped for namespace [/] and action name

 
Luis Mateo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to Struts and I am trying to do this database access example from this website http://www.tutorialspoint.com/struts_2/struts_database_access.htm. When I run the project I can load the login page but once I enter user ID and password it gives me this error: "There is no Action mapped for namespace [/] and action name". I am using the latest version of Tomcat, Eclipse and Struts2. I have tried many different solutions that I found in this forum to this issue, but still no luck. I created the project as a dynamic web project and added the struts libraries under properties>deployment assembly. I also tried to export the project as war manually and upload it to Tomcat with same error. At this point I do not know what else to try to fix this issue. I would appreciate any help.

Thanks.
 
Dipali yadav
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont knw much about struts...
but you can try this in struts.xml

 
Gopakumar Naryanan
Ranch Hand
Posts: 72
Eclipse IDE Hibernate Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create classes directory under. WEB-INF directory. Move your struts.xml into classes. Directory .. it may help you.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic