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 Problem returning input result type with struts 2 validations with tiles 2(anotations) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem returning input result type with struts 2 validations with tiles 2(anotations) " Watch "Problem returning input result type with struts 2 validations with tiles 2(anotations) " New topic
Author

Problem returning input result type with struts 2 validations with tiles 2(anotations)

pavan babu
Greenhorn

Joined: Sep 02, 2008
Posts: 15
Hi

I am using struts 2 validations with tiles 2.I have a jsp with two fields and in the action class I am checking for required field anotation.When I submit the for with out any fields it says no input type is defined but there is input type in my struts.xml as follows


Struts.xml


someactionclass.java



exception




No result defined for action someactionclass and result input - action - file:/C:/jboss-4.2.1.GA/server/default/deploy/somewar.war/WEB-INF/classes/struts.xml:28:99
at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:345)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)
at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)




any help is highly apreciated
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Is your Tiles definition really named "input.jsp"?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem returning input result type with struts 2 validations with tiles 2(anotations)