Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

The value for the useBean class attribute connection.StringManipulation is invalid

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I run a simple jsp program. But the error occur while running my program.

In my program location :
webapps/myjsp/helloWorld.jsp

webapps/myjsp/classes/connection/StringManipulation.java
webapps/myjsp/classes/connection/StringManipulation.class

And
Still i am not create any web.xml file in myjsp/WEB-INF folder
Is must to create web.xml file to run the following code.
i don't know how to define the web.xml file.

helloWorld.jsp


StringManipulation.java




i am getting the following error




please help me .
Thanks in advance.
 
Sheriff
Posts: 67636
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The servlet specification outlines exactly how to create the deployment descriptor (web.xml).

There are also examples in the Tomcat download, and in the JSP FAQ on this site.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the "classes" directory must be under "WEB-INF".
 
Eswar Nec
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@Christophe Verré :
Now i create the directory structure WEB-INF/classes/connetion/
Then my code is worked...
Thanks for your reply...

 
Whoever got anywhere by being normal? Just ask this exceptional tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic