tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Hester" <hesterl...@hotmail.com>
Subject What's the problem with Tomcat 4.1.29 and Switch?
Date Tue, 24 Feb 2004 02:03:32 GMT
In Tomacat this works fine:

<-- switch.jsp -->
<!-- BEGIN -->
<!doctype html public "-//W3C//DTD HTML 4.0 Final//EN">
<%
int day = 3;
%>
<html>
<head>
<title>Test Switch</title>
</head>
<body>
<% switch (day) {
 case 1:
  out.println("Sunday");
  break;
 case 2:
  out.println("Monday");
  break;
 default:
  out.println("No day");
  break;
   } %>
</body>
</html>
<!-- END -->

but this does NOT

<-- switch.jsp -->
<!-- BEGIN -->
<!doctype html public "-//W3C//DTD HTML 4.0 Final//EN">
<%
int day = 3;
%>
<html>
<head>
<title>Test Switch</title>
</head>
<body>
<% switch (day) { %>
 <% case 1:
  out.println("Sunday");
  break;
 case 2:
  out.println("Monday");
  break;
 default:
  out.println("No day");
  break;
   } %>
</body>
</html>
<!-- END -->

-- 
George Hester
__________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message