Without a default case or some other initialisation for subTitle etc what would happen if page was passed in as 99, for example. The java compiler is being very 'nanny'ish but it is sensible in its own terms.
Best Wishes John Burgess [EMAIL PROTECTED] Tel: 01865 718666 Fax: 01865 718600 -----Original Message----- From: Nicholas Orr [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 12:35 AM To: 'Tomcat Users List' Subject: RE: This has me ???Puzzled???: Switch being done but not really Thanks for that, How come those lines make all the difference? When I had a 'default' case in my switch everything worked fine, but I didn't want a default in there. So I took it out. Then I got my problem, how come. Nicholas -----Original Message----- From: Galbayar [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 9:28 AM To: Tomcat Users List Subject: RE: This has me ???Puzzled???: Switch being done but not really add this sPage = request.getParameter("Page"); sSubTitle=null; sFormName=null; sPageName ********************************************************************** The information contained in this e-mail is confidential and is intended only for the use of the addressee(s). If you receive this e-mail in error, any use, distribution or copying of this e-mail is not permitted. You are requested to forward unwanted e-mail and address any problems to the MIM Holdings Limited Support Centre. For general enquires: ++61 7 3833 8000 Support Centre e-mail: [EMAIL PROTECTED] Support Centre phone: Australia 1800500646 International ++61 7 38338042 ********************************************************************** -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>