File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes STRUTS example not running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "STRUTS example not running" Watch "STRUTS example not running" New topic

STRUTS example not running

ir pi

Joined: Oct 06, 2010
Posts: 2
hello I'm learning struts but an example i followed from the net isn't working...can anybody look into this ?



i get this error

Joe Ess

Joined: Oct 29, 2001
Posts: 8836

Welcome to the JavaRanch.
Where did you find this example? It's sure looks wrong. The struts.xml file should be under the WEB-INF directory. Your helloworld.class file should be under classes, not lib. The path is case-sensitive, so I think CLASSES is wrong as well.
If you want a good example, several come with the Struts distribution, including a blank application that you can extend with your own code.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: STRUTS example not running
Similar Threads
problem in Struts2 while running an application
Struts2 config error
WARNING: Could not find action or result
Http 404 resource() not found error?
The requested resource () is not available.