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

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -