• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

STRUTS example not running

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic