About Question enthuware.jwpv6.2.766 :

Moderator: admin

Post Reply
ETS User

About Question enthuware.jwpv6.2.766 :

Post by ETS User »

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?

admin
Site Admin
Posts: 10068
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.766 :

Post by admin »

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 139 guests