tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Hester" <hesterl...@hotmail.com>
Subject Re: What's the problem with Tomcat 4.1.29 and Switch?
Date Tue, 24 Feb 2004 22:26:36 GMT
Ah neat.  I was wondering how to use the basic idea.  I showed it as out.println but I knew
there had to be a better way.  Thanks much Antonio.

-- 
George Hester
__________________________________
"Antonio Fiol BonnĂ­n" <fiol.bonnin@terra.es> wrote in message news:403AFB68.2000903@terra.es...
> George Hester wrote:
> 
> >Thanks.  I wish Damon Hougland and Aaron Tavistock knew that before they published
their Sun sanctioned book.  It would have saved me a lot of frustration.  I really expected
Sun's CORE books to be better then Wrox.
> >
> >Their example was this which failed:
> >
> ><% switch (day) { %>
> ><% case 1: %>
> >   <font color="blue" size="+1">Sunday</font>
> >   <% break; %>
> ><% case 2: %>
> >   <font color="blue" size="+1">Monday</font>
> >   <% break; %>
> ><% default: %>
> >   <font color="blue" size="+1">No day</font>
> >   <% break; %>
> ><% } %>
> >
> >  
> >
> 
> I believe the following would work like a charm:
> 
> <% switch (day) { 
>    case 1: %>
>    <font color="blue" size="+1">Sunday</font>
> <% break; 
>    case 2: %>
>    <font color="blue" size="+1">Monday</font>
> <% break; 
>    default: %>
>    <font color="blue" size="+1">No day</font>
> <% break; 
>    } %>
> 
> 
> Keep the elements that need to be together really together.
> 
> 
> Antonio Fiol
> 


---------------------------------------------------------------------
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