Results 1 to 2 of 2
  1. #1
    sameerk is offline Member
    Join Date
    Aug 2010
    Rep Power

    Default Struts 2 error : No result defined for action / result

    I have created one jsp page and one action class and add their linking in struts.xml but when i click on the submit button it shows me following error
    "No result defined for action and result input "

    i have checked jsp action name and action name in the struts.xml also and also the class name in struts.xml and class name which i have created.

    all names are correct
    how to resolve this problem ?:confused:

  2. #2
    foo123 is offline Member
    Join Date
    May 2011
    Rep Power

    Default struts 2 form execution

    In struts 2 for forms you need to define 2 results (or more)
    1 for success
    2 input (that is if your form wasn't valid so struts tries to find alternative result)

    you can define both to be the same url.

    This is all i can say since i haven't seen the code but i think that this might be the reason.

Similar Threads

  1. resource not found error- Struts 2 (Struts2 in action- Manning)
    By JavaNoobie87 in forum Web Frameworks
    Replies: 0
    Last Post: 01-17-2011, 10:09 AM
  2. Java Result: 255
    By MadJack in forum New To Java
    Replies: 14
    Last Post: 11-11-2010, 08:54 AM
  3. How to format the result
    By galagali in forum New To Java
    Replies: 3
    Last Post: 07-11-2010, 12:15 AM
  4. Replies: 2
    Last Post: 03-18-2009, 08:36 PM
  5. getting a random result
    By gradon in forum New To Java
    Replies: 2
    Last Post: 07-19-2007, 03:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts