My Oracle Support Banner

How to Compile a JSP with Java 7 Specific Code in it? (Doc ID 1595074.1)

Last updated on APRIL 06, 2018

Applies to:

Oracle Weblogic Server - Version 12.1.1.0 and later
Information in this document applies to any platform.

Goal

How to compile a JSP which has Java 7 specific code in it?

E.g.

<%!
public class MyComparator implements java.util.Comparator {

    @Override
    public int compare(String o1, String o2) {
        return 0;
    }
}

%>

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.