Originally posted by Srinivasan thoyyeti:
{
boolean session = false;
boolean session = false;
}
That does not look right. The page directive is for giving the Container intructions when it performs jsp to
java translation. It does not generate any variable (at least in the way it was stated before), but it affects the code generated by the Container. In the case of the "session" attribute of the page directive, it tells the 'translator' not to generate the session implicit variable and any code related to it.
If you take a look at the JSP 2.0 specs, you'll find the answer in the JSP 1.10.1 (IIRC) section, where it explains the use of the page directive. I don't have access to the specs right now, but what it says is that, with the exception of two attributes (import and pageEncoding), you might have duplicate attributes providing the values you specify are the same. In the question on the first post, it declared "session" attribute twice but with the same value: "false", so no exception should be raised at translation time.
I think Tridib is right and the mock response is not (unless there is another problem I cannot see right now).
[ April 16, 2007: Message edited by: Sergio Tridente ]