jsp中嵌套if語句怎么寫?
<html>
<head>
<TITLE>Nested if Statements</TITLE>
</head>
<body>
<h1>Nested if Statements</h1>
<%
double value = 2;
if (value != 0) {
if (value > 0)
out.println("The result = " + (1 / value));
else
out.println("Sorry, we need a positive number.");
}
%>
</body>
</html>