>>>>> "Sloan" == Sloan Seaman <[EMAIL PROTECTED]> writes:

    Sloan> I have a variable in the session named:
    Sloan> com.symbol.mobilecommerce.analysis.SESSION_USER

    Sloan> I want to get the object via c:out and use it in a JSP page.
    Sloan> When I have the variable just named SESSION_USER it works fine.
    Sloan> Example (note core:out = c:out)
    Sloan> Greetings
    Sloan> <core:out value="${sessionScope.SESSION_USER.firstName}"/>
    Sloan> <core:out value="${sessionScope.SESSION_USER.lastName}"/>.

    Sloan> But if I try:
    Sloan> Greetings
    Sloan> <core:out
    Sloan> value="${sessionScope.com.symbol.mobilecommerce.analysis.SESSION_USER.firstN
    Sloan> ame}"/>
    Sloan> <core:out
    Sloan> value="${sessionScope.com.symbol.mobilecommerce.analysis.SESSION_USER.lastNa
    Sloan> me}"/>.

    Sloan> It doesn't work.

    Sloan> I know this is because c:out is trying to call the object com and then the
    Sloan> getter symbol and so on.

    Sloan> How do I get around this so that it works?

Try:

value='${sessionScope["com.symbol.mobilecommerce.analysis.SESSION_USER"].firstName}'


-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP; SCWCD




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

Reply via email to