Howdy, > <servlet-mapping> > <servlet-name>MessageServlet1</servlet-name> > <url-pattern>/servlet/MessageServlet1</url-pattern> > </servlet-mapping> > >The problem is when I add the above code to the xml file nothing Under >servlets-examples will run. What am I doing wrong?
You need to have a <servlet> element in your web.xml file defining what class MessageServlet1 is, e.g. <servlet> <servlet-name>MessageServlet1</servlet-name> <servlet-class>com.mycompany.SomeServlet</servlet-class> </servlet> It's preferable to put this servlet element before the servlet-mapping one ;) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
