aspose file tools*
The moose likes Servlets and the fly likes invoking a servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "invoking a servlet" Watch "invoking a servlet" New topic
Author

invoking a servlet

jyotsana dang
Ranch Hand

Joined: Sep 26, 2003
Posts: 135
i have written a servlet code for the sign up page
iam using tomcat 4.1 as the server..
had a small problem ..
Where do we store the servlet java file and the servlet class file?
i have stored the file in my directory under the root dir. and the class file in the web-inf dir..under the classes dir..
but when i submit the form..
it gives an error .. the servlet/Registration file not available
thanks
jyotsana
vijaykumar shah
Greenhorn

Joined: Jul 02, 2003
Posts: 23
"i have written a servlet code for the sign up page
iam using tomcat 4.1 as the server..
had a small problem ..
Where do we store the servlet java file and the servlet class file?"
Have a habit of reading the help file available with the server, no problem if u haven't read but if u read lot of problem will be solved
Now while working with tomcat 4.1 what u can do is whenever its time to put servlet , in servlet u can place the .java and .class file both in the web-inf\classes directory, if u can view examples available they are all taken from that directory , so put your .class and .java file in classes
while accessing
u have to write in url
http://localhost:8080/servlets/whatever
whatever is your class file
not putting the jsp file
u can place your jsp , html file in the root
and access as http://localhost:8080/home.jsp or home.html
"i have stored the file in my directory under the root dir. and the class file in the web-inf dir..under the classes dir..
but when i submit the form..
it gives an error .. the servlet/Registration file not available"
if u still have problems u can come online on yahoo id vijayshahbiis2003 or vijay_shah_78 send me message i shall let u know what is to be done
there is also concept of context.. and many more...... with tomcat..
this is beyound the scope of this session
thanks
vijay
 
Don't get me started about those stupid light bulbs.
 
subject: invoking a servlet