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

From Hostek.com Wiki
Jump to: navigation, search
(ColdFusion 9 and Lower)
m (ColdFusion 10 and Lower)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
On our Railo hosting plans (Windows and Linux) we support .jsp (Java Server Pages). Tomcat is the servlet container for this CFML engine.
 
On our Railo hosting plans (Windows and Linux) we support .jsp (Java Server Pages). Tomcat is the servlet container for this CFML engine.
  
===ColdFusion 10 and Lower===
+
===ColdFusion===
 
On our Windows and Linux ColdFusion plans, JSP is not supported.
 
On our Windows and Linux ColdFusion plans, JSP is not supported.
  
==References==
 
If you are interested in running Java Server Pages on ColdFusion 10, please see these references for more info and examples:
 
*[http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-786c.html#WSc3ff6d0ea77859461172e0811cbec22c24-788b Examples: using JSP with CFML]
 
*[http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-786d.html Using JSP tags and tag libraries]
 
 
==Sample Code==
 
==Sample Code==
 
Here is a small sample .jsp code snippet that has been verified on the servers:<pre>
 
Here is a small sample .jsp code snippet that has been verified on the servers:<pre>

Latest revision as of 16:12, 10 November 2014

JSP Support

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

On our Windows and Linux ColdFusion plans, JSP is not supported.

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>