I have a JSP page I am working on and I am confused by some of the formatting/coding.
There are sections where it's obvious what's going on:
<%
if (.....)
{
%>
<input type=hidden name="blahblah" value="moreblah">
<%
}
%>
But now I see sections where I have no idea how or why it works/compiles:
<%
{
// do stuff here
String sClass = "blahblah"
if ( sClass.equals("") )
{
sClass = "blah";
}
}
%>
There's no if or while or for or anything at the start of those curly brackets. Why does that compile and produce a good jsp page?