Hello again

As Michael suggested I put a session="false" in the page directive in my
index.jsp like this

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ page session="false" %>
<html>
 <body>
        <logic:forward name="cookiecheck"/> 
 </body>
</html>

but the problem still is there. my session is not null!

Peter
-----Ursprüngliche Nachricht-----
Von: Michael Jouravlev [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 29. Juni 2005 18:16
An: Struts Users Mailing List
Betreff: Re: Struts and Sessions Problem


Hmm, I don't see how the session can be null. If you start from JSP,
and you did not set session="false" in the page directive, then to my
understanding, session should be created right in the JSP.

Michael.

> My index.jsp only forwards like this:
> 
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> <html>
>   <body>
>     <logic:forward name="cookiecheck"/>
>   </body>
> </html>

[skipped]

> My problem: when a user accesses my webapp for the first time this method
> does not return null,
> although it should do so! It is no problem of Tomcat 5.5.9 I am using, the
> Servlet I wrote for testing does
> its work properly and returns null if the user accesses my page for the
> first time. So why does Struts behave
> like this? Is it because of all the forwarding and redirecting, although
it
> should have no effect in my opinion?
> 
> Perhaps someone knows whats going wrong
> 
> Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to