• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet directory structure

 
Ramsvi R
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello ,

Can some one tell me the directory structure of servlet when deployed on tomcat.I have an applet which draws a graph.Now these graph points are stored in an array and needs to be passed to servlet. But servlet cannot find the java class that performs this functin of getting and setting the value.on checking the applet viewer the graph is drawn.also values are set in array.But servlet cannot find the class file.it keeps giving null pointer exception

thanks ..
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mk mm,
Welcome to JavaRanch!

We're pleased to have you here with us in the servlets forum, but there
are a few rules that need to be followed, and one is that proper names are
required. Please take a look at the
JavaRanch Naming Policy and
adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

You can change it here
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But servlet cannot find the java class

The location for the applet - which must be requested and loaded by the browser - can not be seen by the servlet engine. Place copies of the classes where the servlet gets its classes. Be sure that ALL classes are in packages and are located accordingly.
Bill
 
Ramsvi R
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much.

Placing the the copies in relevant directories,did indeed help.

svi_r
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramsvi R,

Thank you for fixing your screen name.
Your current screen name still doesn't comply with the naming policy.
The first name can be an initial but the last name can not.

Please use the above link to fix this.
-Ben
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic