File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes My action Class is not executing... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "My action Class is not executing..." Watch "My action Class is not executing..." New topic

My action Class is not executing...

Mallikarjuna Chejerla

Joined: Jul 24, 2006
Posts: 16
I am using Sruts2 in my Application.

I have a Login.jsp in My application. It is submitting to 'LoginAction.action' class.This login class returning a String "suce_fw". The corresponding result I have written in struts.xml as follows

<result name="suce_fw" type="redirect-action">xyz</result>

And i have defined an action mapping for 'xyz' in my struts.xml as follows

<action name="xyz" class="a.b.xyzClass">
<result type="tiles">abctile</result>


Till here my application working fine. Where in "abctile".I have a �submitForm.jsp" in Body portion of that Tile. When i submit this page the corresponding action class defined as <form action=�namespace\actionclass.action�> is not calling. I mean to say that struts controller is not able to find out my action class.

In Log file i can see the following Message:

( - No configuration found for the specified action: in the namespace

But I have defined the action class mapping in the struts.xml. All my action classes are defined in same namespace.

I have cross checked the name of class and path i defined in struts.xml. But not able to find any mistake in my struts.xml.

Please help me in resolving this. Thanks in Advance!!!
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 689


Remove namespace from this form <form action=�namespace\actionclass.action�>
and write your form like <form action=�actionclass.action� method=post>

and add namespace like

<package name="packagename" extends="struts-default" namespace="/namespace">

Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
I agree. Here's the link:
subject: My action Class is not executing...
It's not a secret anymore!