Morgan,
This should work, so it must be a bug.
The logic tags use the first obj to determine the type,
then converts the value to that type before doing the
comparison. This did not work for a String,
I'll post a fix to CVS shortly.
Thanks Morgan!
Glenn
Morgan Delagrange wrote:
>
> Hi all,
>
> I'm trying to get acquainted with Foundation, but I
> think I may be missing something. This code snippet:
>
> <%@ taglib uri="foundation" prefix="base" %>
>
> <base:parameter id="params"/>
>
> <base:print obj="params{is_on_loan}"/>
>
> <base:areEqual obj="params{is_on_loan}" value="1">
> <base:boolean id="isOnLoan">true</base:boolean>
> </base:areEqual>
>
> produces this exception:
>
> javax.servlet.ServletException: Foundation, Bean
> or Script Variable with id "params{is_on_loan}"
> could not convert the value "1"
>
> Am I missing something here? I thought that the
> "value" attribute was intended for simple string
> comparisons?
>
> - Morgan
>
> =====
> Morgan Delagrange
> Britannica.com
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
--
----------------------------------------------------------------------
Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder |
MOREnet System Programming | * if iz ina coment. |
Missouri Research and Education Network | */ |
----------------------------------------------------------------------