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

calling servlet from html pages

 
rajavardhan n
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
rajavardhan
 
KASI VISHWANATH
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do not use servlet in ur relative path. that will solve the problem here.
------------------
I.K.VISHWANATH
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic