wood burning stoves 2.0*
The moose likes Struts and the fly likes Newbie HelloWorld Struts.xml problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Newbie HelloWorld Struts.xml problem" Watch "Newbie HelloWorld Struts.xml problem" New topic
Author

Newbie HelloWorld Struts.xml problem

Ron Ingram
Ranch Hand

Joined: Mar 11, 2011
Posts: 63
Catching an exception when trying to run the HelloWorld tutorial... Can someone help please? Seems to be a struts.xml format issue



Exception....

Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8708
    
    6

Ron Ingram wrote:


Looks like your interceptors element is not complete, as you have not specified a interceptor or interceptor stack. I'd recommend deleting it, as well as the global-results tag that does not have an end tag.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Ron Ingram
Ranch Hand

Joined: Mar 11, 2011
Posts: 63
Thank you, now I'm back to my original exception where I'm not following the struts.xml format. Exception below:
Ron Ingram
Ranch Hand

Joined: Mar 11, 2011
Posts: 63
This is my struts.xml file now:

Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8708
    
    6

Take a hard look at that second action declaration.
Ron Ingram
Ranch Hand

Joined: Mar 11, 2011
Posts: 63
Thanks for not giving it away.. I did need to really look over it and follow my tags.. I moved the </action> to the proper place after the </result>.

Appreciate your time. R
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

method="execute". you can take off by default execute method would be called. Because we're overriding it.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Newbie HelloWorld Struts.xml problem
 
Similar Threads
Struts 2 Problem - The module has not been deployed.. Please help
Error in Struts2 application
action not found in struts2
struts 2 application not running
Unable to load file:.../target/apphoio/WEB-INF/classes/struts.xml