aspose file tools*
The moose likes Struts and the fly likes No result defined for action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "No result defined for action " Watch "No result defined for action " New topic
Author

No result defined for action

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
Hi,

I am getting the follwoing excpetion
Please help.

No result defined for action com.consulting.action.InHouseScreenAction and result input - action - file:/C:/WWW/apache-tomcat-5.5.27/webapps/cyberq/WEB-INF/classes/struts.xml:55:54
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:345)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)



my jsp page




myaction class



my strut.xml





pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
pankaj semwal wrote:Hi,

I am getting the follwoing excpetion
Please help.

No result defined for action com.consulting.action.InHouseScreenAction and result input - action - file:/C:/WWW/apache-tomcat-5.5.27/webapps/cyberq/WEB-INF/classes/struts.xml:55:54
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:345)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)



my jsp page









myaction class



my strut.xml





David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Are you running any validation? Have you checked the log for any type conversion errors? Both will attempt to return you to the "input" result on errors.
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
hi,

yes i put validation

like this

ve" />
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
Hi,

when i am remove ing the check box from the jsp page .Its working.
Otherwiese its not working
i.e
# <td class="datalist">
# <s:checkbox name="candidate_id" id="candidate_id" />
# <s:property value="candidate_id" />
# </td>
# <td class="datalist">
# <s:checkbox name="candidate_id" id="candidate_id" />
# <s:property value= "candidate_id" />
# </td>
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What does your validation look like?
  • The most probable cause for getting an "input" result is a validation or type conversion error.
  • Unless you've defined a different result name for validation failure you need an "input" result.

  • Are you setting your theme to "simple" somewhere?
  • I don't see it, and without it, your HTML as shown will be invalid when rendered.
  • The Struts 2 form tags, when using the default "xhtml" theme, render form elements in tables.

  • pankaj semwal
    Ranch Hand

    Joined: Oct 07, 2008
    Posts: 301
    YEs i am using simple theme in strut.propties.
    like.
    struts.ui.theme=simple
    David Newton
    Author
    Rancher

    Joined: Sep 29, 2008
    Posts: 12617

    Seriously, it's probably either a validation or type conversion issue.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: No result defined for action