Setting and passing a variable in jsp -


I want to set a variable in a jsp page, if it is a fixed value, and then to test if It is, and then, create a table row after a certain line when I try that nothing like this happens.

  & lt; C: forEach var = "line" item = "$ {regData}" varStatus = 'rowstatus' & gt; & Lt; TR & gt; & Lt; C: Select & gt; & Lt; C: when test = "$ {row.values ​​[10] == 'PROG'}" & gt; & Lt; C: set var = "postTitle" value = "entrenarm" scope = "request" /> & Lt; / C: When & gt; & Lt; / TR & gt; & Lt; / C: foreach & gt; & Lt; C: if test = "$ {fn: length (postatit) == 'PROG'}" & gt; & Lt; TR & gt; Anttermin & lt; / TR & gt; & Lt; / C: If & gt;    

try it

  & lt; C: forEach var = "line" items = "$ {regData}" varStatus = 'rowstatus' & gt; & Lt; TR & gt; & Lt; C: Select & gt; & Lt; C: when test = "$ {row.values ​​[10] EAC 'PROG'}" & gt; & Lt; C: set var = "postTitle" value = "entrenarm" scope = "request" /> & Lt; / C: When & gt; & Lt; / TR & gt; & Lt; / C: foreach & gt; & Lt; C: If test = "$ {fn: length (postatite) eq 'PROG'}" & gt; & Lt; TR & gt; Anttermin & lt; / TR & gt; & Lt; / C: If & gt;   

For the string you use .equals instead of == is needed.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -