The jsp page named uploadTextContent.jsp contains the following code,
<html:cancel value="Close" accesskey="c" styleClass="Button" onclick="JavaScript:closeWellFormatContent('<%=request.getAttribute("message")%>')" />
When tried to be deployed in Weblogic 10, I am getting the following error while activating changes.
Substituted for the exception weblogic.servlet.jsp.CompilationException which lacks a String contructor, original message – uploadTextContent.jsp:51:137: This attribute is not recognized. ‘)” /> ^—–^
Could you please let me know what shall be the rootcause for this error and how this can be rectified.
<%=request.getAttribute("message")%>– this scriptlet contains double quotes and it appears inside of attribute’s double quotes.Try to replace scriptlet with EL expression (to avoid double quotes):
EDIT
It might be that EL evaluation is disabled. In order to enable it you need to set
isELIgnoredof thepagedirective tofalse:This setting will enable JSP evaluation for one page. If EL evalution is required in all or most of the pages then it’s better to set
el-ignoredconfiguration option tofalseinweb.xmllike this: