wood burning stoves
The moose likes Servlets and the fly likes calling servlet from html pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "calling servlet from html pages" Watch "calling servlet from html pages" New topic

calling servlet from html pages

rajavardhan n

Joined: Nov 12, 2000
Posts: 3
how to call a servlet from html page so that it will be supported by all webservers.
While using javawebserver2.0 as webserver i called servlet from HTML page using relative path
action ="servlet/abc"
and from servlet if i want to access a html file, i accessed it using sendReditect("../abc.html")
It worked fine with Jws2.0 and JRUN 3.0 installed as pluginto IIS on WindowsNT
But when i tried the same on Weblogicsever5.1 installed on windowsNT it is not working. Because we can directly call a servlet with out having "servlet/" as prefix can someone help me out on this
with regards
Ranch Hand

Joined: Aug 06, 2000
Posts: 60
do not use servlet in ur relative path. that will solve the problem here.

I agree. Here's the link: http://aspose.com/file-tools
subject: calling servlet from html pages
jQuery in Action, 3rd edition