jsp能否用象asp那样用if..else..有选择地输出html内容?
是否可以这样:
<html>
<body>
<% if (...) %>
<input type="text"/>
<% else %>
<input type="hidden"/>
</body>
</html>
如果可以的话,由于jsp没有endif
是否要改成:
<html>
<body>
<% if (...)
{ %>
<input type="text"/>
<% }
else
{ %>
<input type="hidden"/>
<% } %>
</body>
</html>