Difference between revisions of "Java Server Pages - .jsp"

From Hostek.com Wiki
Jump to: navigation, search
(Created page with "==JSP Support== ===ColdFusion 10 and Railo=== On our Windows ColdFusion 10 and Railo hosting plans (Windows and Linux) we support .jsp (Java Server Pages). Tomcat is the servl...")
 
(ColdFusion 10 and Railo)
Line 1: Line 1:
 
==JSP Support==
 
==JSP Support==
 
===ColdFusion 10 and Railo===
 
===ColdFusion 10 and Railo===
On our Windows ColdFusion 10 and Railo hosting plans (Windows and Linux) we support .jsp (Java Server Pages). Tomcat is the servlet container for both of these CFML engines.
+
On our Railo hosting plans (Windows and Linux) we support .jsp (Java Server Pages). Tomcat is the servlet container for this CFML engine.
 +
 
 
===ColdFusion 9 and Lower===
 
===ColdFusion 9 and Lower===
 
On our Windows and Linux ColdFusion 9 (and lower) plans, we only support the ".jsp" handler mapping.
 
On our Windows and Linux ColdFusion 9 (and lower) plans, we only support the ".jsp" handler mapping.

Revision as of 17:41, 14 March 2014

JSP Support

ColdFusion 10 and Railo

On our Railo hosting plans (Windows and Linux) we support .jsp (Java Server Pages). Tomcat is the servlet container for this CFML engine.

ColdFusion 9 and Lower

On our Windows and Linux ColdFusion 9 (and lower) plans, we only support the ".jsp" handler mapping.

References

If you are interested in running Java Server Pages on ColdFusion 10, please see these references for more info and examples:

Sample Code

Here is a small sample .jsp code snippet that has been verified on the servers:
<%@ page language="java" %>
<html>
<body>
<table border="1">
<tr><td><b>Property Names</b></td>
<td><b>Property Values</b></td></tr>
<%
final String[] properties = {
"java.runtime.name",
"java.vm.vendor",
"java.runtime.version",
"java.vendor.url",
"user.timezone",
"user.language",
"os.name",
"sun.desktop"
};
for (int i = 0; i < properties.length; i++) {
String pname = properties[i];
String pvalue = System.getProperty(pname);
%>
<tr>
<td><%= pname %></td>
<td><%= pvalue %></td>
</tr>
<% } %>
</table>
</body>
</html>