wood burning stoves 2.0*
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
Author

STRUTS example not running

ir pi
Greenhorn

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 ?


|test\

||helloworld.jsp
||index.jsp
||META-INF\
||WEB-INF\
|||WEB.XML
|||CLASSES\
|||LIB\
||||STRUTS.XML
||||user\
|||||helloworld.class
|||||helloworld.java















i get this error

Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

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: http://aspose.com/file-tools
 
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.