You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Frers Michael <fr...@Sisis.de> on 2004/08/20 10:58:27 UTC
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?
Thanks for any help
Michael
Re: C:out getter
Posted by struts lover <st...@yahoo.com>.
Use the
<jsp:useBean id="theBean" class="my.theBean"
scope="session"/>
Then use
<c:out value="${theBean.text}"/>
--- Frers Michael <fr...@Sisis.de> wrote:
> 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?
>
> Thanks for any help
>
> Michael
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org