> -----Original Message-----
> From: Frers Michael [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 20, 2004 1:58 AM
> To: Struts Users Mailing List
> Subject: C:out getter
> 
> 
> Hello
> can someone explain me how i should use the <c:out tag in my 
> situation:
> 
> 
> i have a bean "theBean" with a getter
> 
> 
> getText(String textid){
> ...
> ...
> return result;
> }
> 
> and somewhere ist set:
> 
> session.setAttribute("abean",theBean);
> 
> 
> how can i print now the result in my page?
> 
> <c:out value="${abean.text['xxxxxxx']}"/>
>  didnt work
> 
> Someone knows the solution?

Yes, you aren't following the java beans specification, so you can't do that.  Now, if 
you have your text stored in a map, then you expose the map to the page and you can 
use:
<c:out value="${abean.textMap[keyname]}"/>
per:
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro7.html#wp77083

> 
> Thanks for any help
> 
> Michael
> 

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

Reply via email to