Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JSTL: constant in an expression language.. is possible?

Reply
Thread Tools

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

 
 
sickness
Guest
Posts: n/a
 
      05-11-2006
hello
I' using this expression language
<cut 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:
<cut
value="${sessionScope.<%=ProjectConstants.PSWRCV_U SER%>.desDomanda}"/>

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

thanks a lot guys
bye bye


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C/C++ language proposal: Change the 'case expression' from "integral constant-expression" to "integral expression" Adem C++ 42 11-04-2008 12:39 PM
C/C++ language proposal: Change the 'case expression' from "integral constant-expression" to "integral expression" Adem C Programming 45 11-04-2008 12:39 PM
Case expression must be constant expression Philipp Java 26 11-25-2007 10:10 PM
"error C2057: expected constant expression", "error C2466: cannot allocate an array of constant size 0". Why doesn't my simple program work??? hn.ft.pris@gmail.com C++ 13 01-22-2007 02:03 PM
Understanding How To Use #ifdef Constant #define Constant Sequence In Multible Files Christopher M. Lusardi C++ 1 09-02-2004 07:43 AM



Advertisments