Re: Running servlet from folder within WEB-INF?
Leon Vermaak [EMAIL PROTECTED] on 03/10/2002 07:30:00 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Running servlet from folder within WEB-INF? Sorry but I don't know how best to fraze the question I have I will try to better explain myself. I am new to Tomcat I am on Windows 2000 Professional platform. I compiled the simplest of servlets! I created the following a folder %CATALINA_HOME%/webapps/project/WEB-INF/classes/SERVLET_NAME I started tomcat and called the servlet with http://ip:8080/project/servlet/SERVLET_NAME when I call the servlet, the word SERVLET does not form part of the path? how does this wrok? Is SERVLET_NAME a folder or is it a servlet class? If you have a servlet class called SERVLET_NAME then you have called it in the correct fashion. What do you mean when you say the word SERVLET does not form part of the path? It would be a good idea to check the documentation: http://localhost:8080/tomcat-docs/index.html If this list does not anwer these type of questions would anyone please be so kind as to tell me where I can find answer for beginners of any on-line documentation that explains things in a bit more detail than the Tomcat documentation, which is a bit vague. Thanks RS -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Running servlet from folder within WEB-INF?
I recommend going to http://java.sun.com/docs/books/tutorial/servlets/index.html to read the servlets tutorial. Get the example they use - Bookstore.war and pay particular attention to the web.xml file which is simple and easy to understand. Download bookstore.war from ftp://ftp.javasoft.com/docs/tut-bookstore-tomcat.zip You can drop bookstore war in your webapps directory. Then restart Tomcat. Go to http://localhost:8080/bookstore/ to test it out. If you have a look in the webapps directory you will find that Tomcat has created the bookstore subdirectories. Experiment a little, this example made a lot of things clear for me. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED] Sent: 11 March 2002 14:05 To: Tomcat Users List Subject: Re: Running servlet from folder within WEB-INF? Leon Vermaak [EMAIL PROTECTED] on 03/10/2002 07:30:00 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Running servlet from folder within WEB-INF? Sorry but I don't know how best to fraze the question I have I will try to better explain myself. I am new to Tomcat I am on Windows 2000 Professional platform. I compiled the simplest of servlets! I created the following a folder %CATALINA_HOME%/webapps/project/WEB-INF/classes/SERVLET_NAME I started tomcat and called the servlet with http://ip:8080/project/servlet/SERVLET_NAME when I call the servlet, the word SERVLET does not form part of the path? how does this wrok? Is SERVLET_NAME a folder or is it a servlet class? If you have a servlet class called SERVLET_NAME then you have called it in the correct fashion. What do you mean when you say the word SERVLET does not form part of the path? It would be a good idea to check the documentation: http://localhost:8080/tomcat-docs/index.html If this list does not anwer these type of questions would anyone please be so kind as to tell me where I can find answer for beginners of any on-line documentation that explains things in a bit more detail than the Tomcat documentation, which is a bit vague. Thanks RS -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Running servlet from folder within WEB-INF?
I recommend going to http://java.sun.com/docs/books/tutorial/servlets/index.html to read the servlets tutorial. Get the example they use - Bookstore.war and pay particular attention to the web.xml file which is simple and easy to understand. Download bookstore.war from ftp://ftp.javasoft.com/docs/tut-bookstore-tomcat.zip You can drop bookstore war in your webapps directory. Then restart Tomcat. Go to http://localhost:8080/bookstore/ to test it out. If you have a look in the webapps directory you will find that Tomcat has created the bookstore subdirectories. Experiment a little, this example made a lot of things clear for me. Chris. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED] Sent: 11 March 2002 14:05 To: Tomcat Users List Subject: Re: Running servlet from folder within WEB-INF? Leon Vermaak [EMAIL PROTECTED] on 03/10/2002 07:30:00 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Running servlet from folder within WEB-INF? Sorry but I don't know how best to fraze the question I have I will try to better explain myself. I am new to Tomcat I am on Windows 2000 Professional platform. I compiled the simplest of servlets! I created the following a folder %CATALINA_HOME%/webapps/project/WEB-INF/classes/SERVLET_NAME I started tomcat and called the servlet with http://ip:8080/project/servlet/SERVLET_NAME when I call the servlet, the word SERVLET does not form part of the path? how does this wrok? Is SERVLET_NAME a folder or is it a servlet class? If you have a servlet class called SERVLET_NAME then you have called it in the correct fashion. What do you mean when you say the word SERVLET does not form part of the path? It would be a good idea to check the documentation: http://localhost:8080/tomcat-docs/index.html If this list does not anwer these type of questions would anyone please be so kind as to tell me where I can find answer for beginners of any on-line documentation that explains things in a bit more detail than the Tomcat documentation, which is a bit vague. Thanks RS -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Running servlet from folder within WEB-INF?
Thank you very much! - Original Message - From: Chris Pheby [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 11, 2002 9:43 AM Subject: RE: Running servlet from folder within WEB-INF? I recommend going to http://java.sun.com/docs/books/tutorial/servlets/index.html to read the servlets tutorial. Get the example they use - Bookstore.war and pay particular attention to the web.xml file which is simple and easy to understand. Download bookstore.war from ftp://ftp.javasoft.com/docs/tut-bookstore-tomcat.zip You can drop bookstore war in your webapps directory. Then restart Tomcat. Go to http://localhost:8080/bookstore/ to test it out. If you have a look in the webapps directory you will find that Tomcat has created the bookstore subdirectories. Experiment a little, this example made a lot of things clear for me. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED] Sent: 11 March 2002 14:05 To: Tomcat Users List Subject: Re: Running servlet from folder within WEB-INF? Leon Vermaak [EMAIL PROTECTED] on 03/10/2002 07:30:00 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Running servlet from folder within WEB-INF? Sorry but I don't know how best to fraze the question I have I will try to better explain myself. I am new to Tomcat I am on Windows 2000 Professional platform. I compiled the simplest of servlets! I created the following a folder %CATALINA_HOME%/webapps/project/WEB-INF/classes/SERVLET_NAME I started tomcat and called the servlet with http://ip:8080/project/servlet/SERVLET_NAME when I call the servlet, the word SERVLET does not form part of the path? how does this wrok? Is SERVLET_NAME a folder or is it a servlet class? If you have a servlet class called SERVLET_NAME then you have called it in the correct fashion. What do you mean when you say the word SERVLET does not form part of the path? It would be a good idea to check the documentation: http://localhost:8080/tomcat-docs/index.html If this list does not anwer these type of questions would anyone please be so kind as to tell me where I can find answer for beginners of any on-line documentation that explains things in a bit more detail than the Tomcat documentation, which is a bit vague. Thanks RS -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]