Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

calling servlet from html pages

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
do not use servlet in ur relative path. that will solve the problem here.
------------------
I.K.VISHWANATH
reply
    Bookmark Topic Watch Topic
  • New Topic