Re: Servlets -- help needed
Schalk, I wrote a java program (HelloWWW.java) and placed the file in this path: C:\Program Files\jakarta-tomcat-4.1.27\webapps\examples\WEB-INF\classes I also compiled that java code. Compilation was successful. I tried to execute that servlet in the browser using this link : http://localhost:8080/examples/WEB-INF/classes/HelloWWW But it is giving 404 (file not found) error. Why is it so? How can i access these files in the browser ..? Means, what link should i give in the browser ? -- Navanee Schalk wrote: Navanee The file structure, for webapps are as follows: Tomcat/webapps/yourapp/ - In this folder you can place all of your image files, html files, .js, .css, and your JSP's. Tomcat/webapps/yourapp/WEB-INF/classes/ - In here you should place all compiled servlet code Tomcat/webapps/yourapp/WEB-INF/lib/ - In here you can place all .jar files that your web application will need to have access to. Tomcat/webapps/yourapp/WEB-INF/ - Here goes your .tld and .xml files, for example the web.xml Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or diclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Navanee [mailto:[EMAIL PROTECTED] :: Sent: Friday, November 14, 2003 7:20 AM :: To: [EMAIL PROTECTED] :: Subject: Servlets -- help needed :: :: Friends, :: :: I want to write a HTML form that will accept some values from the user :: and i want to print the values using a servlet program. :: :: I have installed Tomcat 4.1 in my win2k m/c. :: :: This is the folder where i have installed the Tomcat: C:\Program :: Files\jakarta-tomcat-4.1.27\webapps :: :: Please tell where (in which folder) i should place the HTML file and :: where i should place the Servlet code that will read the values from the :: form? :: Similarly where should i place the JSP code? :: :: Since there are many folders i often get confused where to place the :: code. Any other pointers would be more helpful. :: :: -- Navanee :: :: :: - :: To unsubscribe, e-mail: [EMAIL PROTECTED] :: For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlets -- help needed
I ran the script and it is working fine!! I am having a problem now. I changed the content of the java file and i compiled the code. Compilation was successful. When i tried to view the modified servlet in the browser it is throwing an error: HTTP Status 503 - This application is not currently available I restarted the Tomcat ran the program again. It is working fine. What might be the reason behind this? -- Navanee [EMAIL PROTECTED] wrote: http://localhost:8080/examples/servlet/HelloWWW -Original Message- From: K. Harvatis [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 3:24 PM To: Tomcat Users List Subject: Re: Servlets -- help needed Navanee, Please check and edit the \WEB-INF\web.xml file, which holds the mappings. After that, you will only need http://localhost/your_servlet_urlname_from_web.xml Kostas Harvatis - National Center for Social Research - Directorate of Research Support www.ekke.gr - Original Message - From: Navanee [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, November 14, 2003 9:11 AM Subject: Re: Servlets -- help needed Schalk, I wrote a java program (HelloWWW.java) and placed the file in this path: C:\Program Files\jakarta-tomcat-4.1.27\webapps\examples\WEB-INF\classes I also compiled that java code. Compilation was successful. I tried to execute that servlet in the browser using this link : http://localhost:8080/examples/WEB-INF/classes/HelloWWW But it is giving 404 (file not found) error. Why is it so? How can i access these files in the browser ..? Means, what link should i give in the browser ? -- Navanee
Re: Servlets -- help needed
I don't have any idea of how to edit the web.xml file. Any pointers would be helpful. [EMAIL PROTECTED] wrote: Navanee, Please check and edit the \WEB-INF\web.xml file, which holds the mappings. After that, you will only need http://localhost/your_servlet_urlname_from_web.xml Kostas Harvatis - National Center for Social Research - Directorate of Research Support www.ekke.gr - Original Message - From: Navanee [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, November 14, 2003 9:11 AM Subject: Re: Servlets -- help needed Schalk, I wrote a java program (HelloWWW.java) and placed the file in this path: C:\Program Files\jakarta-tomcat-4.1.27\webapps\examples\WEB-INF\classes I also compiled that java code. Compilation was successful. I tried to execute that servlet in the browser using this link : http://localhost:8080/examples/WEB-INF/classes/HelloWWW But it is giving 404 (file not found) error. Why is it so? How can i access these files in the browser ..? Means, what link should i give in the browser ? -- Navanee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlets -- help needed
Friends, I want to write a HTML form that will accept some values from the user and i want to print the values using a servlet program. I have installed Tomcat 4.1 in my win2k m/c. This is the folder where i have installed the Tomcat: C:\Program Files\jakarta-tomcat-4.1.27\webapps Please tell where (in which folder) i should place the HTML file and where i should place the Servlet code that will read the values from the form? Similarly where should i place the JSP code? Since there are many folders i often get confused where to place the code. Any other pointers would be more helpful. -- Navanee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC Realm hangs
[EMAIL PROTECTED] wrote: Hello, I am running tomcat 4.1.27 on windows 2000 server with sql server 7 in production. Using the JDBC Realm to manage the login. The login works just fine but then after some time it hangs up. The login page is served so I know tomcat is still running but once the user types in the username and password nothing happens. Anybody have any ideas on how I can diagnose this problem. There are no error messages. Once I reboot the server the problem goes away for an indeterminate amount of time and then comes back. thanks Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Basic doubt
I want to work with JSP. I have installed Tomcat in my PC (win 2k). What are the various parameters (or configurations) that i need to make before executing a JSP program? Where should i place all the JSP programs (in which folder?)? Thanks Navanee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]