Option 4 is supposed to be correct (green highlighted in the solution):
"There is no need to put any directive for this purpose.
Because, by default, session is available."
And here goes the explanation:
"The session attribute indicates that the page requires participation in an (http) session. If it is set to "true" then the implicit script language variable named 'session' of type javax.servlet.http.HttpSession references the current/new session for the page. If "false" then the page does not participate in a session; the implicit variable is unavailable, and any reference to it within the body of the JSP page is illegal and will result in a fatal translation error. Default is "true"."
I think this is a little bit contradictory... isn't it?
About Question enthuware.jwpv6.2.766 :
Moderator: admin
-
- Site Admin
- Posts: 10228
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.766 :
Why do you think it is contradictory? By default, i.e. if you do not have this directive at all, the session will be available. You can explicity specify it to true as well but it is not necessary.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 1 guest