Results 1 to 2 of 2
- 05-17-2011, 06:25 AM #1
Member
- Join Date
- Aug 2010
- Posts
- 19
- Rep Power
- 0
Struts 2 error : No result defined for action / result
Hello,
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:Sameer
- 05-17-2011, 10:15 AM #2
Member
- Join Date
- May 2011
- Posts
- 10
- Rep Power
- 0
struts 2 form execution
In struts 2 for forms you need to define 2 results (or more)
1 for success
and
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
-
resource not found error- Struts 2 (Struts2 in action- Manning)
By JavaNoobie87 in forum Web FrameworksReplies: 0Last Post: 01-17-2011, 10:09 AM -
Java Result: 255
By MadJack in forum New To JavaReplies: 14Last Post: 11-11-2010, 08:54 AM -
How to format the result
By galagali in forum New To JavaReplies: 3Last Post: 07-11-2010, 12:15 AM -
Google Error - "This site may harm your computer" on every search result?!?!
By angryboy in forum Forum LobbyReplies: 2Last Post: 03-18-2009, 08:36 PM -
getting a random result
By gradon in forum New To JavaReplies: 2Last Post: 07-19-2007, 03:54 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks