Sunday, November 22, 2009

JSTL tag not working in Weblogic Portal 10

Problem: JSTL complex expressions are not recognized in weblogic portal version 10 and onwards. It complains that cannot resolve the complex expressions and throws jsp compilation errors as follows:

Caused by: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /package/JSPName.jsp
JSPName.jsp:165:13: Static attribute must be a String literal, its illegal to specify an expression.

Resolution: Replace the jstl taglib as http://java.sun.com/jsp/jstl/core for weblogic 10 and newer versions, for older versions it should be http://java.sun.com/jstl/core, jsp word is the key in the url for the taglib.

No comments: