This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi I am trying an example with body-content tag as scriptless. when I give EL in jsp, i am getting this exception. "org.apache.jasper.JasperException: /customtag.jsp(8,29) Expression language not allowed in a template text body."
Is n't EL allowed in tag body when body-content is specified as scriptless?
I think that the problem comes from that your "user" attribute does not accept runtime expressions. The jsp:attribute has the following condition : For standard or custom action attributes that do not accept a request-time expression value, the Container must use the body of the <jsp:attribute> action as the value of the attribute. A translation error must result if the body of the <jsp:attribute> action contains anything but template text.
So you have to set the rtexprvalue of the user attribute to true. [ December 06, 2007: Message edited by: Christophe Verre ]