Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No result defined for action

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

yes i put validation

like this

ve" />
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
    Posts: 303
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    YEs i am using simple theme in strut.propties.
    like.
    struts.ui.theme=simple
     
    David Newton
    Author
    Rancher
    Posts: 12617
    IntelliJ IDE Ruby
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Seriously, it's probably either a validation or type conversion issue.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic