JSP / Java Servlet FAQ

:: Server Side Technology (Intermediate)

Q: Where can I find out more about JSP / Java Servlets?

http://java.sun.com
http://devshed.com - Has a few tutorials on JSP / Java Servlets
http://forums.devshed.com - Has an active Java community, remember to use the "Search" feature before asking a question!

Q: My .jsp files are showing up as text!

Contact support to be moved to a JSP enabled server. This service is available for Package B and above only.

Q: What support do you provide for JSP / Java Servlets?

We cannot support third party scripts, nor can we support programming problems. Take a look at our FORUMS to see if anyone there may be able to help you out. Otherwise, take a look at the links below for further resources.

Q: Where can I run servlets from?

If using mod_jserv, servlets are run from your "servlets/" folder. If using Tomcat, servlets can be activated via the JSP button in your control panel, and will be run from the "webapps/MYSERVLET/" folder.

Q: What extension is used for JSP files?

Our JSP servers are setup to use .jsp for JSP files. JSP files can only be served from the "webapps/" folder.

Q: What version of JSP / Java Servlets are you running?

Our JSP servers run on TOMCAT supporting the SERVLET and JSP specifications. We use MYSQL. Our mod_jserv servers support the Servlet 2.0 specification.

Q: How do I connect to MySQL using JSP / Java?

The MySQL driver is included on our JSP servers:

Class.forName("org.gjt.mm.mysql.Driver").newInstance();
Connection connect = DriverManager.getConnection("jdbc:mysql://localhost:3306/DATABASE", USERNAME, PASSWORD);
Statement sql = connect.createStatement();
ResultSet result = sql.executeQuery("SELECT field FROM table");
while(result.next() ) {
out.println(result.getString("field") + "<br />");
}


If you are connecting via mod_jserv (Servlets not on Tomcat) you will need to first download the driver from mysql.com.

BBB OnLine Reliability SealContents of this website are copyright (c) 1998 - 2004 Christian Web Host Inc. and its licensors. All rights reserved.
Please read out privacy policy if you have questions regarding our use of personal information.
Are you experiencing problems viewing this site? Please let us know