Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!

  • Post Reply Bookmark Topic Watch Topic
  • New Topic

My action Class is not executing...  RSS feed

Mallikarjuna Chejerla
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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">
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!