el « String « JSP-Servlet Q&A

1. Combining a string with the value of a variable to be the name of another variable in EL    stackoverflow.com

I want to do something like this:

<display:table name="${summary${index}}">
But it does not work throws exception: "${summary${selChrm}}" contains invalid expression(s). I would like the user to use a drop down list to choose ...

2. JSP EL String concatenation    stackoverflow.com

How do I concatenate strings in EL? I want to do something like this but it doesn't work:

${var1 == 0 ? 'hi' : 'hello ' + var2}
It throws an exception trying to ...

3. Comparing strings in EL    stackoverflow.com

How to compare the strings in JSP EL. I tried to do

<select name="groupa" style="width: 170px">
   <option value ="-1">no group</option>
 <c:forEach var="gr" items="${sessionScope['entrantsAcceptor'].groups}">
  <option value="${gr.idGroup}" <c:if test="${gr.code == ...

4. How to concatenate Strings in EL?    stackoverflow.com

Apparently, you cannot use the normal + operator to append strings in jsp...at least its not working for me. Is there a way to do it? Fragment of my code that ...

7. manipulating string param EL    coderanch.com