• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

problem running a servlet in tomcat

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am working on a web application which is written using servlets.i am using netbeans 5.5 and bundled tomcat server.my servlets are in the source package in the following order

myservlet.com.web.UserLogin

UserLogin is my servlet class

i tried to run the servlet in localhost in the following order
http://localhost:18080/WirelessPalm/servlet/myservlet.com.web.UserLogin?requestype=Login&LoginName=DSR1&PalmName=DSR1&Password=a&LoginDate=2007-8-13

/WirelessPalm is my Project name



i am new to servlets. pls help

thanks.
 
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you give us what error/exception that you got?
 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What version of tomcat are you using?
you cannot invoke servlets directly in newer versions of tomcat.

Instead use web.xml to map a url pattern to Servlet. This should work.
 
Look! I laid an egg! Why does it smell like that? Tiny ad, does this smell weird to you?
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic