Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1

2005-09-13 Thread Seva Popov
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1

2005-09-13 Thread Seva Popov
BTW, I  understand that I can use a different syntax with the runtime
expressions. So, if I change my jsp (not use the xml syntax) it's
working fine:

%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
%@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt; %
%@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions; %

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

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

However, I'd like to find out if it anyway somehow possible to use the
jsp xml syntax and JSP 2.0 runtime expressions in the attribute values
of JSTL 1.1

For example Resin does allow it.

Any ideas?


-Original Message-
From: Seva Popov [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 12:59 PM
To: Tomcat Users List
Subject: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute
values of JSTL 1.1

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1

2005-09-13 Thread Rahul Akolkar
On 9/13/05, Seva Popov [EMAIL PROTECTED] wrote:
 BTW, I  understand that I can use a different syntax with the runtime
 expressions. So, if I change my jsp (not use the xml syntax) it's
 working fine:
 
 %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
 %@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt; %
 %@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions; %
 
  jsp:directive.page contentType=text/html; charset=UTF-8/
 
  c:set var=aheader
 value='%=System.getProperty(com.tv.common.assets.header)%'/
  ${aheader}
 
 However, I'd like to find out if it anyway somehow possible to use the
 jsp xml syntax and JSP 2.0 runtime expressions in the attribute values
 of JSTL 1.1
 
 For example Resin does allow it.
 
 Any ideas?
snip/

Funny you should ask [
http://marc.theaimsgroup.com/?l=tomcat-userm=112493628101874w=2 ]

-Rahul

 
 
 -Original Message-
 From: Seva Popov [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 13, 2005 12:59 PM
 To: Tomcat Users List
 Subject: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute
 values of JSTL 1.1
 
 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1

2005-09-13 Thread Seva Popov
It is funny. 
 
Once I talked with you a while ago I found in the spec that I indeed should use 
%= exp % in a JSP documents (i.e. with xml syntax)  instead of %= exp %  
in a JSP page. I tried it then and it did not work for me.
 
So I've decided that it's implemented differently in Tomcat.
I've just have tried it once more and it is working fine!
 
I guess last time my jsp was cached and that's why I did not see the result :)
 
Thanks again for your responce. It was helpful.
 
--Seva



From: Rahul Akolkar [mailto:[EMAIL PROTECTED]
Sent: Tue 9/13/2005 6:28 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute 
values of JSTL 1.1



On 9/13/05, Seva Popov [EMAIL PROTECTED] wrote:
 BTW, I  understand that I can use a different syntax with the runtime
 expressions. So, if I change my jsp (not use the xml syntax) it's
 working fine:

 %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
 %@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt; %
 %@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions; %

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

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

 However, I'd like to find out if it anyway somehow possible to use the
 jsp xml syntax and JSP 2.0 runtime expressions in the attribute values
 of JSTL 1.1

 For example Resin does allow it.

 Any ideas?
snip/

Funny you should ask [
http://marc.theaimsgroup.com/?l=tomcat-userm=112493628101874w=2 ]

-Rahul



 -Original Message-
 From: Seva Popov [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 13, 2005 12:59 PM
 To: Tomcat Users List
 Subject: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute
 values of JSTL 1.1

 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]