File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes please help me run my first applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "please help me run my first applet" Watch "please help me run my first applet" New topic

please help me run my first applet

darren malt

Joined: Aug 17, 2002
Posts: 23
I'm ebarresed to say how long I have been trying to get my first servlet running, so I won't, but it's too long.
this is what I have done:
I'm on windows 98;
Using j2se 1.4;
Downloaded tomcat 4.1 and set it up as instructed, sucessfull with http;localhost:8080 and I can compile servlets;
Created an Html file, and put it in:
<title>date servlet test</title></head>
<h2> server side include test </h2>
todays date should be here:<servlet code="/web_inf/classes/DatePrintServlet"></servlet>
as you can see the actual servlet is off the dateTest folder, as instructed here is the source file (compiled and the .class file is in the same directory).

So, when I type into my browser:
and the html page appears, why is there no date, just the surrounding text.

"Know where I can get a compiler with a sense of humour?"
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
Where did you find an example of this usage?

That looks realllly strange. You should spend some time examining the Tomcat examples.
wood burning stoves
subject: please help me run my first applet
Similar Threads
Server-Side Includes
How to execute a servlet program
Doubt in servlet program using eclipse IDE
servlet wont work
servlet not reloading on Tomcat 4.0