Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Java
»
JSP
use EL get variable
Yunnan Zhou
,
Ranch Hand
May 22, 2011 03:02:02
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
There are some codes below:(just for
test
)
String username = 'Tom'; // variable,not always Tom session.setAttribute('name',username); session.setAttribute(username+'abc','value');
How can i get 'value' in another page to use EL?
Bear Bibeault
,
Sheriff
staff
May 22, 2011 09:57:08
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Certainly not the way that I would do things, but the following should do it:
<c:set var="someName" value="${name}abc"/> <c:out value="${sessionScope[someName]}"/>
Post by:
autobot
We can walk to school together. And we can both read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
This thread has been viewed 1173 times.
Similar Threads
change password
how to use session attribute
Session tracking in servlets
Help Regarding Cookies and session
Get different scope attribute by using EL
More...
All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:46:25
.