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

(Doc ID 1067696.1)

Last updated on MARCH 08, 2017

Applies to:

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


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

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

This page runs correctly in JDeveloper
After having migrated to JDeveloper, 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".


You upgraded from JDeveloper to
It was working correctly in JDev


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