struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sloan Seaman" <sl...@sgi.net>
Subject Re: c:out
Date Sun, 02 Mar 2003 19:59:12 GMT
Good guess... it worked ;)

Thanks!

--
Sloan

----- Original Message -----
From: "Joseph Fifield" <jfifield@programmerplanet.org>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Sunday, March 02, 2003 1:52 PM
Subject: Re: c:out


> This is just a guess...did you try:
>
> sessionScope['com.symbol.mobilecommerce.analysis.SESSION_USER'].lastName
>
> Joe
>
> ----- Original Message -----
> From: "Sloan Seaman" <sloan@sgi.net>
> To: "Tag Libraries Users List" <taglibs-user@jakarta.apache.org>
> Cc: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> Sent: Sunday, March 02, 2003 1:39 PM
> Subject: c:out
>
>
> > I have a variable in the session named:
> > com.symbol.mobilecommerce.analysis.SESSION_USER
> >
> > I want to get the object via c:out and use it in a JSP page.
> > When I have the variable just named SESSION_USER it works fine.
> > Example (note core:out = c:out)
> > Greetings
> > <core:out value="${sessionScope.SESSION_USER.firstName}"/>
> > <core:out value="${sessionScope.SESSION_USER.lastName}"/>.
> >
> > But if I try:
> > Greetings
> > <core:out
> >
>
value="${sessionScope.com.symbol.mobilecommerce.analysis.SESSION_USER.firstN
> > ame}"/>
> > <core:out
> >
>
value="${sessionScope.com.symbol.mobilecommerce.analysis.SESSION_USER.lastNa
> > me}"/>.
> >
> > It doesn't work.
> >
> > I know this is because c:out is trying to call the object com and then
the
> > getter symbol and so on.
> >
> > How do I get around this so that it works?
> >
> > Thanks!
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


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


Mime
View raw message