Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

please help me run my first applet

 
darren malt
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
TOMCAT_HOME\Webapps\datetest\datePrintTest.html
<html>
<head>
<title>date servlet test</title></head>
<body>
<h2> server side include test </h2>
<p>
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:
http://localhost:8080/datePrintTest
and the html page appears, why is there no date, just the surrounding text.
PLEASE HELP.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you find an example of this usage?

That looks realllly strange. You should spend some time examining the Tomcat examples.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic