This logout function was added in Servlet Spec 2.4

http://mail-archives.apache.org/mod_mbox/tomcat-dev/200208.mbox/%3c1029034964.4749.754.ca...@hue.jadn.com%3E
But even after pointing to Dynamic web module 2.4, and Tomcat 7.0, I am not
able to access that API.

Regards,
Javed
On Wed, Jun 20, 2012 at 1:00 PM, javed Ansari <javid....@gmail.com> wrote:

> These settings I already have.
> Does that mean logout has been removed from the Servlet 3.0.
> The book I am referring uses servlet 2.0. Can anybody confirm this?
>
>  On Wed, Jun 20, 2012 at 12:44 PM, Konstantin Kolinko <
> knst.koli...@gmail.com> wrote:
>
>> 2012/6/20 javed Ansari <javid....@gmail.com>:
>> > It seems I am invalidating another servlet than the one which
>> authenticated
>> > the webapp. This confusion is because I am using Google Web Toolkit
>> > application template which not just a plain servlet application.
>> > I am now trying to invalidate all the sessions by calling
>> > HttpSession.logout(). I can see this API in a servlet book but in
>> Eclipse
>> > it is not able to find out even with the latest JDK 1.7.
>> > May be I need to post this onto some Java forum...
>>
>> Servlet API is not part of Java SE, so JDK version does not matter much.
>>
>> To use Servlet 3.0 methods your app must be a "Servlet 3.0" web
>> application (in your web.xml and in your Eclipse Project settings)
>> and must use jars from Tomcat 7. (in your Java Build Path in your
>> Eclipse Project settings)
>>
>> E.g. to create a new project (using Eclipse for Java EE Developers)
>> menu File > New > Project... -> Web > Dynamic Web Project ->
>> and the "New Dynamic Web Project" dialog needs the following values
>>  Target runtime = Tomcat 7,
>>  Dynamic web module version = 3.0.
>>
>>
>> Best regards,
>> Konstantin Kolinko
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>

Reply via email to