EBS Customizations (MOSC)

MOSC Banner

R12 custom JSP using JDK 1.5 features

edited Apr 5, 2018 5:03AM in EBS Customizations (MOSC) 2 commentsAnswered

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>();

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center