All tricks in this blog are only for educational purpose. Learn these tricks only for your knowledge. Please donot try these to harm any one. We will not take any responsibility in any case. All softwares and tools on this site are here for private purposes only and If you want to use a software for business purpose, please purchase it. I do not host many of these tools. I Post links that I have found from numerous Search engines. I will not be responsible for any of harm you will do by using these tools.


Thursday, September 23, 2010

Getting Started with Tomcat/NetBeans/JDBC

Introduction:Tomcat is a combined web server and JSP/servlet host. It can serve up static HTML pages and dynamic pages generated using servlet or JSP technologies. Tomcat is free for commercial use and open source.Netbeans JDBC Goals:This tutorial explains how to get started using these important technologies. It takes you through running Tomcat standalone, creating your first JSP, creating a JSP to access a database and setting up NetBeans.Tutorial:1. Set your JAVA_HOME environment variable, if its is not already set. To do this go to the System applet in the control panel. Go to the advanced tab and click Environment Variables. It might be already set, but if not, Click New (System Variables) and enter:2. Set your CATALINA_HOME environment as above to be:3. Before running Tomcat, we are going to create a new context to hold our new project. You should create a context for each project you want Tomcat to host. 4. Create a new folder called Student in the folder c:\ProgramFiles\j2sdk_nb\netbeans3.5.1\tomcat406\webapps. This is where we will be putting all our HTML and JSP files.5. Now, use TextPad or Note Pad to edit the file: c:\ProgramFiles\j2sdk_nb\netbeans3.5.1\tomcat406\conf\Server.xml. This file holds all the configuration information for the Tomcat server. 6. Locate the line which reads:


Post a Comment