wood burning stoves 2.0*
The moose likes Struts and the fly likes No configuration found for the specified action: 'Login' in namespace: '/jsp' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "No configuration found for the specified action: Watch "No configuration found for the specified action: New topic
Author

No configuration found for the specified action: 'Login' in namespace: '/jsp'

Ashu Bharadwaj
Greenhorn

Joined: Nov 16, 2010
Posts: 20
Hi,

I am getting error No configuration found for the specified action: 'Login' in namespace: '/jsp' Form action defaulting to 'action' attribute's literal value.

I have checked the mapping for the action: Login in struts.xml and in JSP.

[


And struts.xml looks like:
</action>
<action name="Login" class="com.action.ReportAction" method="execute">
<result name="success">./jsp/index.jsp</result>
<result name="input">./jsp/Login.jsp</result>


JSP page looks like:
<s:form action="Login" method="POST" validate="true" theme="simple" >


</action][/code]
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

You should keep your login action in jsp namespace.

Struts2 NameSpace


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.
Ashu Bharadwaj
Greenhorn

Joined: Nov 16, 2010
Posts: 20
Thanks for the reply.

I tried by putting Action classes in jsp folder. I copied from WEB-INF/classes to jsp folder in Tomcat6.

Still getting the same result.
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Ashu,

putting Action classes in jsp folder
.
I suggest you to down load simple example, import project into the eclipse and then run it.
See how it works and then you should start your own application.

Regards
Jatan
 
GeeCON Prague 2014
 
subject: No configuration found for the specified action: 'Login' in namespace: '/jsp'