Re: Servlets under /webapp/app_name/java ?
A simple answer would be: place every servlet in your web.xml file, and apply a servlet mapping. You must do it for each one you have, but then it works (that's what I do). And also, you can skip those odd package names. Un saludo, Alex. web-app servlet servlet-name MyServlet /servlet-name servlet-class package.MyServlet /servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-name MyServlet /servlet-name url-pattern /MyServlet /url-pattern /servlet-mapping [...] /webapp "Aidee Angulo P." wrote: Hi All, What I should do for configure servlets directory other than /servlets for a new application? with regards, Aide P.D. Please tell me how I should do in web.xml and server.xml. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Servlets under /webapp/app_name/java ?
Set up a servlet mapping in web.xml. As follows: servlet-mapping servlet-name NameHere /servlet-name url-pattern /example/NameToBeCalled /url-pattern /servlet-mapping here all requests to localhost/example/NameToBeCalled would be sent to the servlet defined in web.xml named NameHere. This has been discussed in the past on this list. It would cut down on traffic and save you time as well if you check the archives before posting messages because most topics have at least been mentioned on the list before. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A -Original Message- From: Aidee Angulo P. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 12:22 PM To: Tomcat Users Subject: Servlets under /webapp/app_name/java ? Importance: High Hi All, What I should do for configure servlets directory other than /servlets for a new application? with regards, Aide P.D. Please tell me how I should do in web.xml and server.xml. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]