You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by "Chaimungkalanot, Mark " <ma...@cba.com.au> on 2003/10/28 04:15:17 UTC

Usage of c:out with Map backed objects

Hi there,

I have an Object that is returned to a JSP which has a "Object get(Object
key)" key method, much like a Map object. However, it doesn't implment the
Map interface.

Is it possible to use a <c:out value="${blah.key}"/> to get an object under
the key in the object blah? This doesn't seem to work immediately

I can't modify this class since it has been supplied by the framework we're
using JStateMachine

Cheers

Mark C


**************   IMPORTANT MESSAGE  **************
This e-mail message is intended only for the addressee(s) and contains information which may be confidential. If you are not the intended recipient please advise the sender by return email, do not use or disclose the contents, and delete the message and any attachments from your system. Unless specifically indicated, this email does not constitute formal advice or commitment by the sender or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries.
**************************************************


Re: Usage of c:out with Map backed objects

Posted by Rick Ross <rr...@stupendousman.com>.
No, I don't think so.  You'll probably have to wrap the class with a 
custom tag.  Or, in a 2.0 container, you could create an EL function.

R

Chaimungkalanot, Mark wrote:

>Hi there,
>
>I have an Object that is returned to a JSP which has a "Object get(Object
>key)" key method, much like a Map object. However, it doesn't implment the
>Map interface.
>
>Is it possible to use a <c:out value="${blah.key}"/> to get an object under
>the key in the object blah? This doesn't seem to work immediately
>
>I can't modify this class since it has been supplied by the framework we're
>using JStateMachine
>
>Cheers
>
>Mark C
>
>
>**************   IMPORTANT MESSAGE  **************
>This e-mail message is intended only for the addressee(s) and contains information which may be confidential. If you are not the intended recipient please advise the sender by return email, do not use or disclose the contents, and delete the message and any attachments from your system. Unless specifically indicated, this email does not constitute formal advice or commitment by the sender or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries.
>**************************************************
>
>
>  
>


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