wood burning stoves 2.0*
The moose likes Struts and the fly likes There is no Action mapped for namespace / and action name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "There is no Action mapped for namespace / and action name" Watch "There is no Action mapped for namespace / and action name" New topic
Author

There is no Action mapped for namespace / and action name

nisha Sham
Greenhorn

Joined: Jun 12, 2002
Posts: 19
I have a very small struts application,when i click on particular link i get the following error, I am using struts2

WARNING: Could not find action or result
There is no Action mapped for namespace / and action name veggieAction. - [unknown location]
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:178)


Struts.xml
<package name="default" extends="struts-default" >
<action name ="veggieAction" class="veggieActionBean">
<result name="veggiehome" type="redirect">veggie.jsp</result>
</action>
</package>
I also tried adding namespace.

application context xml
<bean id="veggieActionBean" class="com.expense.signon.TopLayoutAction">
<property name="textprovider" value="VeggieProvider"></property>
</bean>

topMenu1.jsp


Can sombody tell me where am i goign wrong

Thanks

<a href="<s:url action="veggieAction"/>" > VEGGIE

Jitmer Jijo
Greenhorn

Joined: Oct 17, 2010
Posts: 6
This might be as simple as addiing a "/" infront of the action name as below.
<a href="<s:url action="/veggieAction"/>" > VEGGIE

or

<s:form action="/fileUploadAction" method="POST" enctype="multipart/form-data">

This could fix the "There is no Action mapped for namespace" error
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: There is no Action mapped for namespace / and action name
 
Similar Threads
no Action mapped for namespace / and action name HelloWorld
Struts2 namespace url problem
Struts2_Action problem
basic struts2 question
Jsp is not displaying in Struts2