• 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

servlets directory

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have written my first servlet and I want to see it on the browser.
I created a html called ShowForm.html in the directory
d:/jakarta_tomcat/Webapps/servlets/ShowForm.html

and my Sampleservlet.class and Sampleservlet.Java are under
d:/jakarta_tomcat/Webapps/WEB_INF/Classes/ServletProject

on the browser if I say http://localhost:8080/examples/servlet/ServletProject.Sampleservlet
it is working
but, from the HTML when I say
<form
Action =ServletProject.Sampleservlet
Method = Post>
</form>
this is the address it pulled up when I hit submit button
http://localhost:8080/examples/servlets/ServletProject.Sampleservlet
please note the difference between servlets and servlet. How can I change this?
Please help.
Krupa
 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try changing the
action="/examples/servlet/yourservlet"
 
krupa devi
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Beksy,
It worked.
thanks,
Krupa
 
Don't listen to Steve. Just read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic