R12 custom JSP using JDK 1.5 features
Hi
I'd a custom JSP with code like this:
<%@ page import="java.util.*" %>
<html><body>
Server info: <%= application.getServerInfo() %><br>
Servlet version: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
JSP version: <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %><br>
Java version: <%= System.getProperty("java.version") %><br>
<%
Hashtable<String, String> ht = new Hashtable<String, String>();
ht.put("test1", "1");
ht.put("test2", "2");
%>
</body></html>
I put this JSP file under $OA_HTML. When I try to access this file I got 500 error and from the application.log file
generics are not supported in -source 1.4 (use -source 5 or higher to enable generics)
Hashtable<String, String> ht = new Hashtable<String, String>();