"Java code in jsp source files is not allowed in ojsp.next mode". in JDev 11.1.1.1.x (Doc ID 1067696.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle JDeveloper - Version 11.1.1.1.0 to 11.1.1.2.0 [Release Oracle11g]
Information in this document applies to any platform.
Checked for relevance on 15-Feb-2013

Symptoms

Your application includes a JSP page with scriptlets like the following:

<html>
   <head></head>
   <body>
      <% response.sendRedirect("../login/login.jsp?goto=.."+request.getContextPath()+"/faces/yourAppplication");
       %>
   </body>
</html>


 
This page runs correctly in JDeveloper 11.1.1.0.
After having migrated to JDeveloper 11.1.1.2.0, running the page fails with the following error:

Java code in jsp source files is not allowed in ojsp.next mode.


You see the following error displayed in the page:

"JSP scriptlets will not work properly if using OJSP".

Changes

You upgraded from JDeveloper 11.1.1.0.x to 11.1.1.1.x
It was working correctly in JDev 11.1.1.0.x

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms