This page is intended for our customers who uses one or
more of our dedicated servers running Red Hat Linux 7.1 or higher with
Java SDK and Jakarta-Tomcat installed. If you have a dedicated server
with us and you like to find out whether your server supports Java
and/or Jakarta-Tomcat, please contact us.
In general, we deliver dedicated linux servers with the Apache
configured to use the Vhost Alias module so you do not have to modify
the Apache configuration to configure a new Java web site. The
following will create and test a JSP web site:
Create a Java Test Page
Creat a test.jsp file and upload this to the html
directory of the web site that you want to enable JSP:
<%
String vPath = request.getRequestURI();
String rPath = getServletConfig()
.getServletContext()
.getRealPath(vPath);
%>
<html>
<head>
<title>
jsp test
</title>
</head>
<body>
<p>The virtual path is <%=vPath%></p>
<p>The real path is <%=rPath%></p>
</body>
</html>
Modify Tomcat
Edit this file: /usr/tomcat/conf/server.xml and add
this before </ContextManager>:
E Commerce in a Box ResponsiveWeb CommerceBolt:
Amazon.com grade shopping cart! Get listed in Froogle, Pricegrabber, Bizrate, & manage your inventory, shipments, orders, & more.
Web Design
Clean, Professional, and Effective. Web Design without the child's play. Cutting Edge Design: starting at $299, with a Free Domain Name, Free Database, & Free Month of Hosting