This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 9136

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.

[How To Ask Questions On JavaRanch]
It is sorta covered in the JavaRanch Style Guide.
subject: STRUTS example not running
It's not a secret anymore!