Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 JSP


  JSP connect MySQL

To connect MySQL with Java Server Page(JSP). Some steps should be followed:Step 1: Download MySQL JDBC connector driver from the Internet. URL:  http://dev.mysql.com/downloads/connector/j/Step 2: Put the jar file downloaded in Step 1 in the Tomcat common lib folder and add this jar file to the CLASSPATH so that the JSP page can find the specified class.Step 3: Create the JSP page with MySQL connection : Example is shown below:        <% String driver="com.mysql.jdbc.Driver"; Class.forName(driver).newInstance(); Connection conn=null; Statement stmt=null; Result...

8,044 0       MYSQL JSP CONNECTION DRIVER DOWNLOAD


  A Hello, World Servlet

Servlets are the pure Java solution to handle web requests. Many application will use servlets instead of JSP and others will use servlets in conjunction with JSP. Experienced JSP programmers use servlets in conjunction with JSP to create clearer and simpler applications. The servlets handle Java processing: form handing, calculation and database queries. JSP formats the results.Servlets belong in WEB-INF/classes. On this machine, the source is in Java source in /var/www/hosts/www.caucho.com/webapps/resin-3.0/WEB-INF/classes. WEB-INF/classes is the standard location for servlets and other Java...

3,469 0       WEB.XML TOMCAT SERVLET WEB-INF