• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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.
 
If you live in a cold climate and on the grid, incandescent light can use less energy than LED. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic