I have a parameter of user that I am setting equal to -1 if this param is not given. I only want to show the table if the parameter is fulfilled ( for instance if user = 1 ).
- so using an “if” statement…..can I just do something like this:
ex:
if(user >= 1){
<table>
<tr>
.....
</tr>
</table>
}
Is this possible, or how would you recommend doing this?
Request parameters are as a
Map<String, String>available by${param}in EL. So a request parameter with the nameuseris available by${param.user}.JSTL provides the core tags like
<c:if>to control the flow in the page.So, 1 + 1 = …