Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 "There is no Action mapped for namespace / and action name LoginAction ERROR"

 
P Arunkumar
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Iam new to development field and now iam using struts2 to develop the login page with SQLServer 2008. Iam getting error There is no Action mapped for namespace / and action name LoginAction , Please help me to solve this problem.


Index.jsp:



success.jsp



error.jsp


LoginAction.java


struts.xml


web.xml


SQL DATABASE:



Iam having my struts.xml file in classes folder,and my jar files are in lib folder
commons-io-2.0.1.jar
commons-logging-1.1.1.jar
freemarker-2.3.8.jar
junit-3.8.1.jar
ognl-2.6.11.jar
spring-test-2.5.6.jar
sqljdbc4.jar
struts2-core-2.1.6.jar
xwork-2.1.2.jar


While running time iam getting error
There is no Action mapped for namespace / and action name LoginAction

Please help me to solve my problem

Thanks in advance.
 
Swathi Prakash
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you move your struts.xml to WEB-INF Folder ? As per the standard and it will look the configuration (struts.xml) file only in WEB_INF Folder rite?
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's completely problem with name space, provide the url how you are accessing it?
 
P Arunkumar
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Thanks for your guide.

I have bring my struts.XML file under WEB-INF folder but still same problem.


Then iam new to development, i don't know correct procedure to write struts.XML file , just now iam practicing, so if i did any mistake in the code please intimate me, because by this code only i want to get clear idea, no one is not there to guide me in my office iam developing myself so please help me to solve my problem.
I will be available till 10am to 5:30pm Indian time , so if you are free guide me in that time, its my humble request.

I changed my struts.xml file into :


But still same issue. please guide me.

Thanks in advance.
 
P Arunkumar
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi


Still iam in that issue please help me to solve my query.

Thanks in advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic