• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

STRUTS example not running

 
ir pi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9318
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic