Steve,

Certainly worth a go - computers have the advantage over other experimental
sciences in that you can try things, and not risk laying waste to entire
city blocks if they go wrong.

As we discussed before, the JSP compiler is messing up the structure of your
switch statements - take a look at the .java file mentioned in the error
report, and compare that to how you'd expect the individual case: statements
of a switch to appear.

At the moment, you're getting something like:

switch (foo) {
case '1':
        ...
        break;
        out.println("\r\n");
case '2':
        ...
        break;
        out.println("\r\n");
}

The out.println() statements can never be executed, so cause a compiler
error.

Instead, you want something like:

switch (foo) {
case '1':
        ...
        break;
case '2':
        ...
        break;
}

with nothing between break; and the following case statement at all.

To get this, change the switch statements from being like:

     <% break; %>
<% case '2': %>

to like:

     <% break;
 case '2': %>

and you should start to see the number of compiler errors go down.

HTH,

Dan.

> Hi Daniel, I  don't think that I have ever heard from u
> before--but that is "neither here or there" :). Listen, about
> handling that "switch-case" block in my code, someone suggested
> to me that I "wrap" the whole block in brackets ({ }). And that
> would "magically" make my problems with the code go away! Is
> there anything to that suggestion at all?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to