integration with JSTL  
Author Message
luca





PostPosted: 2004-2-25 19:21:00 Top

java-programmer, integration with JSTL
Hallo, here is my question. I have a Java API
to access some data (collections and strings).

How do I make sure that my API is such that i can access data trhough
the JSTL?

I want to be able to do things like the following
in my JSPs:

<c:if test="$someobj.property == 'john'">
Hallo John
</c:if>

Thanks

Luca

 
Wendy S





PostPosted: 2004-2-25 22:47:00 Top

java-programmer >> integration with JSTL "luca" <email***@***.com> wrote
> Hallo, here is my question. I have a Java API
> to access some data (collections and strings).
> How do I make sure that my API is such that i can access data trhough
> the JSTL?

Conform to the JavaBeans specification, and you shouldn't have any problems.
In brief, that means having get/set methods with names AND TYPES that match,
and no extra 'set' methods with different signatures. You can get the spec
from Sun's site for the rest of the details.

--
Wendy in Chandler, AZ