Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem running a servlet in tomcat  RSS feed

 
Gayani Kanchana
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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.
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you give us what error/exception that you got?
 
Amol Nayak
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!