tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Seva Popov" <seva_po...@tvworks.com>
Subject Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1
Date Tue, 13 Sep 2005 19:59:11 GMT
Hi,

I need to use the JSP 2.0 runtime expressions in the attribute values of
JSTL 1.1 tags but I am getting the exception when I try to use them.
 
My jsp page:

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
          xmlns:c="http://java.sun.com/jsp/jstl/core"
          xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
          xmlns:fn="http://java.sun.com/jsp/jstl/functions"
          version="2.0">

  <jsp:directive.page contentType="text/html; charset=UTF-8"/> 

  <c:set var="aheader"
value='<%=System.getProperty("com.tv.common.assets.header")%>'/>
  
  ${aheader}
 
</jsp:root>

org.apache.jasper.JasperException: /test10.jsp(9,31) The value of
attribute "value" associated with an element type "c:set" must not
contain the '<' character.
	
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.java:39)
	
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java
:405)
	
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java
:86)
	
org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.jav
a:211)
	
org.apache.jasper.compiler.ParserController.doParse(ParserController.jav
a:196)
	
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
100)
	
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
	
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:556)
	
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:293)
	
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
	
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Any advice?

Thanks,
Seva

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message