Howdy, >1. As I understand it, my directory structure should have a "servlet(s)" >folder at the root. Inside should be a folder named "WEB-INF". Inside the >"WEB-INF" folder I should have a web.xml file specifying my servlet aliases >and a "classes" folder. Lastly, my .class files should be in the "classes" >folder. Is this all correct?
No. You don't need to have a servlet(s) folder at the root. The root of your webapp can be called whatever you want. It's also commonly referred to as the docBase. The rest is correct: under the root of your webapp, you need to have a WEB-INF folder. The web.xml file goes in the WEB-INF folder. Under WEB-INF you can have a classes directory where you place .class files and/or a lib directory where you place .jar files. All of this is under the Deployment Organization section of the Servlet Specification document. >2. Can I include as many URL patterns for each servlet as I want? If so, >should the URL patterns all be in the same <servlet-mapping> tag or in >separate <servlet-mapping> tags? Yes, you can have as many as you want. They have to be in separate mapping tags. Yoav Shapira Millennium ChemInformatics 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]
