View Single Post
Old Oct 4th, 2006, 3:03 AM   #2
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
JDBCTest is just a normal class; it needs to be a servlet tobe used with Tomcat.
java Syntax (Toggle Plain Text)
  1. import java.io.*;
  2. import javax.servlet.http.*;
  3. import javax.servlet.*;
  4.  
  5. public class TestServlet extends HttpServlet
  6. {
  7. public void doGet (HttpServletRequest request, HttpServletResponse response)
  8. throws ServletException, IOException
  9. {
  10. PrintWriter out = response.getWriter();
  11. out.println("Hello world");
  12. }
  13. }
Google "java servlets" or "java servlets tutorial" for some further examples.
Arevos is offline   Reply With Quote