|
Actually, the example I posted was not typical of the select building code
in my jsp. The initialization of the String select5 = "" should have been
inside the for loop as it is in all my other code fragments.
That aside, the problem persists. The addition of } else { to the if that checks the request parameter does not solve the problem. The only time the <option> tags get written is inside the for loop, and at the top of the for loop the string is initialized to "" again. Once the for loop ends, no <option> tags will be written, and hence the value of select5 will be irrelevant as it will not be used for anything. So this is still a strange inconsistency. I'm going to try the code on a different JSP engine to see what happens. As a sanity check, I also tried using the else, but my logic above is correct and it had no effect. Has anyone on the list experienced any problems like this before with JSP? June Low wrote: hi, I think the problem is with the "select5", look the follwoing code carefully and u'llknow y: <SELECT NAME="sortby"> |
- weird bug or side effect in jsp interpreter? Scott Douglass
- Re: weird bug or side effect in jsp interpreter? Scott Douglass
- Re: weird bug or side effect in jsp interpreter? Timothy Welch
- Re: weird bug or side effect in jsp interpreter? Douglass Scott
- Re: weird bug or side effect in jsp interpreter? Nicholas Barrington
