My Oracle Support Banner

WLS: Double Quotes in a JSP Tag (Doc ID 1335259.1)

Last updated on MAY 14, 2018

Applies to:

Oracle Weblogic Server - Version: 10.3.3 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

When attempting to use a JSP tag with double quotes embedded inside an attribute, such as:

<jsp:param name="AABB" value="<%= session.getAttribute("ABCD") %>" />

The JSP compiler will thrown the following error:

weblogic.utils.compiler.ToolFailureException: jspc failed with errors :weblogic.servlet.jsp.CompilationException: index.jsp:21:61: This attribute is not recognized.
   <jsp:param name="AABB" value="<%= session.getAttribute("ABCD") %>" />
   ^--^


at weblogic.servlet.jsp.jspc20.runBodyInternal(jspc20.java:454)
at weblogic.servlet.jsp.jspc20.runJspc(jspc20.java:223)
at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:236)
at weblogic.application.compiler.AppcUtils.compileWAR(AppcUtils.java:376)
at weblogic.application.compiler.WARModule.compile(WARModule.java:245)
at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:18)
at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:36)
at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.WARCompiler.compile(WARCompiler.java:29)
at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:112)
at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:37)
at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.Appc.runBody(Appc.java:198)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.application.compiler.Appc.main(Appc.java:257)
at weblogic.appc.main(appc.java:14)

Cause

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
  Symptoms
  Cause
  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.