JSTL String concatenation - How can we achieve this?

Up vote 0 down vote favorite share g+ share fb share tw.

In my JSP.. I am now accessing a session scoped variable using ${sessionScope. Var1}, $sessionScope. Var2}, but I want this 1,2 .. so on, in the var1, to be appended from jstl like ${page} which gives me 0,1,2.. so on.. I tried ${sessionScope.

Var{page}}, also ${sessionScope'var${page}' and other things.. but still I am not able to get it.. So, can someone please help me out in this isuue.. jstl link|improve this question asked Apr 27 '11 at 10:27Akash1.

Why not store the values in a List or Array, that way you don't have to dynamically generate a variable name. – Vik David Apr 27 '11 at 10:54.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send