guyz.......total newbie to servlets stuff.........
have got few java files and their corresponding
class files.....don't know where to put those
files in the tomcat directory structure............
i have put the html files in the root directory.......
the html file is working but the file can't retrieve
the servlet............guyz plz help me out..........

here is the source code of the html file

<!doctype html public "-//w3c//dtd html 3.2//en">

<html>

<head>
<title>SESSION TRACKING</title>
</head>

<body bgcolor="#408080" text="#0000ff" link="#0000ff" vlink="#800080" alink="#ff0000">
<form  action =" http://localhost:8080/servlet/sestrack">
<center>
<input type=submit name =" f" value = FLOWERS><br><br><br>
<input type=submit name =" c" value = COCKS><br><br><br>
<input type=submit name =" b" value = RECORD><br><br><br>
</center>
</form>

</body>
</html>

plz c if the form action path is corect or not.........

plz c ????? Please translate that into proper English so people who are not well versed in gobbledegook can understand you.

Same with parts of the rest of your post...

I agree. You can try and speak proper english if you seek technical help.

ON another note looking at your code... for your fom action:

<form action =" http://localhost:8080/servlet/sestrack">

This will never work ona clients machine you need to correct this.

As for your files.

This is PER YOUR configuration. Where ever you set as ROOT is where the files go.

sorry guyz,i am really very sorry.Yes i am not doing on some
other machine.client and the server is on the same machine.
I have just started.I have kept the class files under
root/web-inf/classes
and html file under root/
But its still not working.

You form action should probably be this:

'/examples/servlet/sestrack'

If it's anything else you need to set up your DD. Actually you need to add the servlet info anyway to the DD(if I remember corretly).

If that still doesn't work then your probably using the latest version of tomcat. I never could get that one to work..Go with 4 or early 5.

plz c ????? Please translate that into proper English so people who are not well versed in gobbledegook can understand you.

Same with parts of the rest of your post...

He speeketh the language of |33t h4x0rz.

ah, zo daz wad he speekz

Hmmm and here I was thinking that was the language of "tard"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.