About Question enthuware.jwpv6.2.1252 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
stobayiwa
Posts: 6
Joined: Thu Dec 31, 2015 1:40 am
Contact:

About Question enthuware.jwpv6.2.1252 :

Post by stobayiwa »

Hie,

Theres a typo on the answer.

Note that a browser has no knowledge about the existence of a servlet at the bank end. It cannot make a distinction between a servlet path and a context path. But you know that a servlet always listens under a context and therefore, while setting a cooking, you must include the context path if you want to restrict the browser to send the cookie only to a particular servlet. If you set the cookie's path to "/showbook", the cookie will be sent back with all the requests to "<hostname>/showbook". If your web app is named library and if you have another web application named showbook, then the cookie will be sent to the web app named "showbook" and not to the webapp named "library". So you should set the cookie's path to "/library/showbook". Since the web app name is outside the control of the web developer, you should use request.getContextPath() to get that name.

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

Re: About Question enthuware.jwpv6.2.1252 :

Post by admin »

Fixed.
thank you for your feedback!
Paul.
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 32 guests