aspose file tools*
The moose likes Struts and the fly likes Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 "There is no Action mapped for namespace / and action name LoginAction ERROR"" Watch "Struts2 "There is no Action mapped for namespace / and action name LoginAction ERROR"" New topic
Author

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

P Arunkumar
Ranch Hand

Joined: Jan 05, 2012
Posts: 119
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

Joined: Jan 18, 2005
Posts: 49
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

Joined: Aug 01, 2007
Posts: 485

It's completely problem with name space, provide the url how you are accessing it?


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
P Arunkumar
Ranch Hand

Joined: Jan 05, 2012
Posts: 119
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

Joined: Jan 05, 2012
Posts: 119
Hi


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

Thanks in advance.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Struts2 "There is no Action mapped for namespace / and action name LoginAction ERROR"