This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
An example might help. Go to http://simple.souther.us, download and run SimpleServlet according to the instructions up there (should take between 3 and 5 mouse clicks if you already have Tomcat running)
You will then have a working example of a helloWorld servlet that is properly packaged and mapped.
The directory structure under the classes directory needs to match your package declaration in the servlet or bean. It also has to match the listing in your servlet-class tag under the servlet tag. You don't need to mention it in the URL Pattern.
Try the example and let me know how it works out for you. [ February 13, 2005: Message edited by: Ben Souther ]
Joined: Feb 11, 2005
i have downloaded the required stuff.do i have to unzip it .what do i have to do to the class file
coz i have to submit an assignment tomorrow Ok. Warning: That has a tendency to back-fire. A lot of developers will refuse to even read a post with 'urgent' in the subject line. You'll get better responses if you use only a subject that describes the problem.
i am trying to run a servlet can i continue posting on the forum if i have ay problem or send u a private message if am not disturbing u You can but I may not get a chance to answer right away. The Servlet and JSP forums are packed with competent people who are anxious to help though.
When I find answering questions disturbing, I'll simply, stop.
Good-Luck with your assignment. [ February 13, 2005: Message edited by: Ben Souther ]