• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

My action Class is not executing...

Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

(Form.java:308) - 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!!!
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
    Bookmark Topic Watch Topic
  • New Topic