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
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.
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
Joined: Aug 31, 2006
Thank you very much.
Placing the the copies in relevant directories,did indeed help.