• 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

invoking servlet through html in eclipse

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to invoke servlet through html in eclipse where my form action in html is
<FORM ACTION="/MyTomcat/Coreservlet.threeparams">

MyTomcat is root folder,Coreservlet is folder inside WEB-INF/src & threeprams is class.
My html runs properly but when i submit page it gives 404 error.
Is there any mistake in the path i am giving.
please help me out..
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you add your servlet to web.xml?



[ December 20, 2007: Message edited by: Arman Sharif ]
[ December 20, 2007: Message edited by: Arman Sharif ]
 
payal Jain
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you it worked.I dint registered my servlet in web.xml.
but why it is needed to register servlet in web.xml,although i am invoking it through html.OR Is it neccessary to register every servlet in xml file.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is necessary to register every servlet. It didn't used to be that way, but there were serious security problems with that approach.
 
reply
    Bookmark Topic Watch Topic
  • New Topic