vendredi 26 février 2016

If else condition inside JSP

Hi Huys i need some help ASAP. This will be great if anyone helps me to solve my problem

I want to asign a value to one tag(lets say 'TAG1') in jsp if value of one variable is empty (lets say variable is 'var1') and asign blank if var1 is not empty. i have wirtten a code but its not working Below is my code

<x:select id="foldeName" TAG1=${var1 ='' ? TAG1='SOME_VALUE' : TAG1=''}>

Aucun commentaire:

Enregistrer un commentaire