java - if statement in JSTL -
I want to make a statement in JSTL. Here's what I want to do:
& lt; C: set var = "sex" value = "$ {param.sex}" /> & Lt; C: If test = "$ (param.sex == 'male')" & gt; // Set gender to zero & lt; / C: if & gt; & Lt; C: If test = "$ (param.sex == 'female')" & gt; // Set gender to one & lt; / C: if & gt;
And then use sex in this section
/ P>
Comments
Post a Comment