Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SHTML problem loading servlet

Status
Not open for further replies.

knuckle05

Programmer
Dec 17, 2001
247
CA
Hi!
When I load this page, I get the text "this is an example", but the servlet (serverdate) doesn't load. When I run the servlet on its own it works, but when calling it from an SHTML page it does not. Any help would be much appreciated.
Here is the code inside the body tags....

<body bgcolor=&quot;#eeeeff&quot;>

this is an example

<servlet code=&quot;Web-inf/classes/serverdate&quot;></servlet>

</body>
 
Hi,

There could be a few reasons for not loading your servlet successfully. What you can do is :-

- Make sure that your web server has the server-side include function enabled.

- if you are sure that it is enabled, try this tag instead.
<SERVLET NAME=&quot;SDATE&quot; CODE=&quot;SERVERDATE.CLASS&quot; CODEBASE=&quot;url&quot;></SERVLET>

Regards,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top