| Author |
My action Class is not executing...
|
Mallikarjuna Chejerla
Greenhorn
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> </action> 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!!!
|
 |
Nishan Patel
Ranch Hand
Joined: Sep 07, 2008
Posts: 676
|
|
Hi, 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
|
 |
 |
|
|
subject: My action Class is not executing...
|
|
|