File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts 2 Validation Using xml is not working in Ajax call. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 Validation Using xml is not working in Ajax call." Watch "Struts 2 Validation Using xml is not working in Ajax call." New topic
Author

Struts 2 Validation Using xml is not working in Ajax call.

Nagu Spartan
Ranch Hand

Joined: Jan 08, 2010
Posts: 40
Struts 2 Validation Using xml is not working in Ajax call.

Error :
HTTP Status 404 - No result defined for action com.hbs.erp.action.ApplyLeaveAction and result input

In struts.xml File,
<action name="applyLeave" method="applyLeave" class="com.hbs.erp.action.ApplyLeaveAction">
<result name="input">/ApplyforLeave.jsp</result>
<result name="success">/applyLeaveSubmit.jsp</result>
</action>
JSP File:




Thanks & Regards,
Nagarajan T.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button.
Nagu Spartan
Ranch Hand

Joined: Jan 08, 2010
Posts: 40
I updated using [code]. now my doubt is , when we implement struts-tags in a JSP page, need to define different action for every method in struts 2 also ...?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'm not really sure what you're asking.

You can use the config browser plugin to check to see what Struts 2 believes your configuration is. Does the file used as the "input" result's location exist (it is of different case than the "success" result, which is either confusing, or a typo)?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 Validation Using xml is not working in Ajax call.
 
Similar Threads
appfuse validation problem
jQuery UI tabs not loading in the same tab
jQuery Ajax Calling Struts Action class
execAndWait Interceptor and Validation interceptor problem
Struts 2 Ajax Page Refreshing Problem?