You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ch...@gmail.com on 2004/10/22 15:57:38 UTC

I think I have a scope problem....

All

I'm using the <bean:write/> tag to get a value out of the Session
scope as follows...

<bean:write name='currentStatusBean' property='reportID'/> 

I seem to be getting the wrong value, however when I grab the object
into a local variable

However, if I do THIS, I get the correct value....
CurrentStatusBean status = (CurrentStatusBean) session.getAttribute("");
status.getReportID();

So, I tried taking the "status" bean and sticking it in the page
context before the <bean:write/> tag gets to it thinking that maybe
there was a bean of that name already in the pageContext the tag was
using first and I STILL got the wrong value.

Keep in mind the correct "reportID" is in fact in the object on the session.

What am I doing wrong?

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