• 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

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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic