Re: [Resin-interest] Servlet exception using c:out with EL

2007-08-09 Thread Hans Loeblich
Am I the only one that has this problem?

Hans

Hans Loeblich wrote:
 I am getting the following error when trying to use the JSTL c:out on a page:
 EL expression '${app.main_category}' is only allowed for attributes with 
 rtexprvalue='true'.

 I checked the tld, and rtexprvalue is indeed set to false.
 But from what I understand, rtexprvalue is only supposed to pertain to 
 scriptlets, not EL expressions?

 Why doesn't resin allow this?

 It seems to work fine in resin 2, but not in resin 3.  I am running resin 
 3.1.0 on my development box, but our servers are currently on resin 2.11 
 (soon to be transistioned).  

 Here is the exact line that it is failing on:
  td class=tabular_table_bodyc:out 
 value=${app.main_category}//td

 Any help would be appreciated.

 Thank You,
 Hans Loeblich




 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
   



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Servlet exception using c:out with EL

2007-08-09 Thread Serge Knystautas
Hans Loeblich wrote:
 Am I the only one that has this problem?

You might want to Google upgrading from JSP 1.1 to JSP 2.0.  The 
rtexprvalue to true was the older way of doing things in JSP 1.1 when 
the JSP itself did not handle EL.  With JSP 2.0 (which Resin 3 
implements) you would want rtexprvalue set to false to pass an attribute 
using EL.  There were two versions of the JSTL (which includes your 
c:out tag) to handle this, so you might need to change your taglib 
declarations.  It was messy and it's been too long since I've done it to 
remember the specifics.

There should be some articles about making this transition.

-- 
Serge Knystautas
Lokitech  software . strategy . design  http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Servlet exception using c:out with EL

2007-08-09 Thread Mike Wynholds
I *think* that with JSP 2.0 you want your taglib declaration to look
like this:

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

the old way was this:

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

the different is the /jsp in there that is added.

I am not 100% sure about the specifics either, but looking in some of my
recent projects, we are using the one with /jsp and things are working
fine.

..mike..

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Serge Knystautas
Sent: Thursday, August 09, 2007 7:26 AM
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] Servlet exception using c:out with EL

Hans Loeblich wrote:
 Am I the only one that has this problem?

You might want to Google upgrading from JSP 1.1 to JSP 2.0.  The 
rtexprvalue to true was the older way of doing things in JSP 1.1 when 
the JSP itself did not handle EL.  With JSP 2.0 (which Resin 3 
implements) you would want rtexprvalue set to false to pass an attribute

using EL.  There were two versions of the JSTL (which includes your 
c:out tag) to handle this, so you might need to change your taglib 
declarations.  It was messy and it's been too long since I've done it to

remember the specifics.

There should be some articles about making this transition.

-- 
Serge Knystautas
Lokitech  software . strategy . design  http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Servlet exception using c:out with EL

2007-08-02 Thread Hans Loeblich
I am getting the following error when trying to use the JSTL c:out on a page:
EL expression '${app.main_category}' is only allowed for attributes with 
rtexprvalue='true'.

I checked the tld, and rtexprvalue is indeed set to false.
But from what I understand, rtexprvalue is only supposed to pertain to 
scriptlets, not EL expressions?

Why doesn't resin allow this?

It seems to work fine in resin 2, but not in resin 3.  I am running resin 3.1.0 
on my development box, but our servers are currently on resin 2.11 (soon to be 
transistioned).  

Here is the exact line that it is failing on:
 td class=tabular_table_bodyc:out 
value=${app.main_category}//td

Any help would be appreciated.

Thank You,
Hans Loeblich




___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest