[opencms-dev] Regarding OpenCMS 15 TagLib Definition

Sean Fok Sean_Fok at ctil.com
Mon Sep 18 07:57:42 CEST 2023


Dear Sir/Madam,

I am new to JSP development and OpenCMS website setup, and I have a question regarding the OpenCMS 15 TagLib definition.
Today I was trying to setup a website with OpenCMS 15 using Oracle WebLogic 14c, and I found that WebLogic 14c has identified some tags from OpenCMS 15 TabLib violating the JSP specification during the Servlet translation (with an exception stating that 'A name-from-attribute variable cannot reference a tag attribute that is request time or is not required.').
According to JSP v2.3 specification, which is available at the Oracle official site<https://download.oracle.com/otndocs/jcp/jsp-2_3-mrel2-spec/> , "... A translation error will result if there is no attribute directive with a name attribute equal to the value of this attribute that is of type java.lang.String, is required and not an rtexprvalue. (name-from-attribute P.221)"
However, the tag attribute for variable 'var' from OpenCMS tags like 'cms:scaleImage' and 'cms:formatter' seems to be not fulfilling the mentioned rule, as the former one is not required, and the latter one is request-time.
It is also weird to me that the same issue seems to not occur if OpenCMS 15 is hosted via Tomcat 9, given that OpenCMS 15 TabLib and the mentioned attribute for the name-from-attribute variable remains unchanged.
I was wondering if I misunderstand any of the concepts I mentioned above, or if there is any extra configuration step that is required for Oracle WebLogic 14c to be compatible to OpenCMS15 like Tomcat 9.

Thank you so much.

Best Regards,
Sean



________________________________

Think before you print.

Disclaimer: This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Computer And Technologies Holdings Limited and her wholly owned subsidiaries. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone.  Please contact the sender if you believe you have received this email in error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20230918/de99411e/attachment.htm>


More information about the opencms-dev mailing list