JSTL: constant in an expression language.. is possible?

S

sickness

hello
I' using this expression language
<c:eek:ut value="${sessionScope.pswRcv_user.desDomanda}"/>

that retrives "desDomanda" from "pswRcv_user" session Attribute.
It works fine.

I've done a class with some constants. This class (ProjectConstants)
contains
public String PSWRCV_USER = "pswRcv_user";

Now I want to associate the string "pswRcv_user" to the constant in the
jstl expression language.
Something like this:
<c:eek:ut
value="${sessionScope.<%=ProjectConstants.PSWRCV_USER%>.desDomanda}"/>

but this doesn't work!
how can I do that?

thanks a lot guys
bye bye
;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top