You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kevin <ke...@gmail.com> on 2009/08/20 05:34:13 UTC

servlet-api 2.4 without HttpSession.logout() method?

I've add this dependency:
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
                <version>2.4</version>
                <scope>provided</scope>
            </dependency>

but I cannot override the new method HttpSession.logout(), and there's
no such method in the decompiled class, anyone can tell me how to fix
this? TIA.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: servlet-api 2.4 without HttpSession.logout() method?

Posted by Kevin <ke...@gmail.com>.
I've read some documents in Chinese that describe this feature.

On Thu, Aug 20, 2009 at 12:57 PM, Paul Benedict<pb...@apache.org> wrote:
> I never heard of such a method. I checked the JEE 1.4 API docs and can
> verify it doesn't exist:
> http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSession.html
>
> It also doesn't exist in Servlet 2.5:
> http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpSession.html
>
> Any idea why you think it should exist? There is an #invalidate() which
> should do what you want but that has existed since the start.
>
> Paul
>
> On Wed, Aug 19, 2009 at 10:34 PM, Kevin <ke...@gmail.com> wrote:
>
>> I've add this dependency:
>>            <dependency>
>>                <groupId>javax.servlet</groupId>
>>                <artifactId>servlet-api</artifactId>
>>                <version>2.4</version>
>>                <scope>provided</scope>
>>            </dependency>
>>
>> but I cannot override the new method HttpSession.logout(), and there's
>> no such method in the decompiled class, anyone can tell me how to fix
>> this? TIA.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: servlet-api 2.4 without HttpSession.logout() method?

Posted by Paul Benedict <pb...@apache.org>.
I never heard of such a method. I checked the JEE 1.4 API docs and can
verify it doesn't exist:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSession.html

It also doesn't exist in Servlet 2.5:
http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpSession.html

Any idea why you think it should exist? There is an #invalidate() which
should do what you want but that has existed since the start.

Paul

On Wed, Aug 19, 2009 at 10:34 PM, Kevin <ke...@gmail.com> wrote:

> I've add this dependency:
>            <dependency>
>                <groupId>javax.servlet</groupId>
>                <artifactId>servlet-api</artifactId>
>                <version>2.4</version>
>                <scope>provided</scope>
>            </dependency>
>
> but I cannot override the new method HttpSession.logout(), and there's
> no such method in the decompiled class, anyone can tell me how to fix
> this? TIA.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>