tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: Session managing in Tomcat problem
Date Wed, 05 Nov 2003 08:33:02 GMT
Hi Tracy,
if you will pay for my flight to NZ, I would be happy to give you a live 
demo :)


Adam

On 11/04/2003 11:50 PM Tracy Saward wrote:
> Hi,
>   
> We are independent consultants currently undertaking a study of satisfaction
> among end-users of Open Source Software, notably Tomcat, for a company which
> has asked us for recommendations in terms of deploying policy for such
> systems. 
> I was hoping to set up a quick (5 minute) telephone interview with yourself
> or the appropriate person to discuss your experience with this product to
> date.
> 
> Please feel free to telephone me anytime, or reply to this e-mail indicating
> an appropriate time/person for me to recall.
> 
> Thanks for your gracious attention to this request!
> 
> Best regards,
> 
> Tracy
> 
> 
> Tracy Saward
> Fleetward Group
> 85 Maskell Street
> St Heliers
> Auckland
> New Zealand
> Tel:   64 9 575 1626
> Fax:   64 9 585 0939
> Mail: tracys@fleetward.com
>  
> 
> 
> -----Original Message-----
> From: Yansheng Lin [mailto:yansheng.lin@isogis.com] 
> Sent: Wednesday, November 05, 2003 11:03 AM
> To: 'Tomcat Users List'
> Subject: RE: Session managing in Tomcat problem
> 
> 
> 
> Hi Chris,  I just tried your suggestion, but I am getting a 500:
> 
> org.apache.jasper.JasperException: can't access SESSION_SCOPE without an
> HttpSession
> 	at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
> 54)
> 	at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
> java
> :684)
> 	at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
> er.j
> ava:432)
> 	at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
> .jav
> a:356)
> 	at
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
> 58)
> 	.
> 	.
> 	.
> 
> And it's kind of strange since in my struts-config, I set the action to be
> request scope. So I tried to trace back and finally got lost in the jungle
> of forwards's. Oh btw, the ending tag(@>) is a typo from you suggestion
> right?  I use '%>'. Thanks!
> 
> -Yan
> 
> -----Original Message-----
> From: Christopher Schultz [mailto:christopher.d.schultz@comcast.net] 
> Sent: November 4, 2003 2:09 PM
> To: Tomcat Users List
> Subject: Re: Session managing in Tomcat problem
> 
> 
> Yansheng,
> 
>>Then why does a session gets created again in the response stage? Does 
>>tomcat need that for anything?  That's annoying!
>>
>>I invalidate the session at the end of execute() method in my
>>Struts Action class since I don't need it anymore, then I trace
>>the code back to RequestDispatcher.java in javax.servlet, only
>>to realize that the session was created again.
> 
> 
> If you don't have:
> 
> <%@ page session="false" @>
> 
> ... at the top of your page, then the JSP might create your session for 
> you. This is because (I think) that session="true" is the default. If 
> you want a session (or accept the default), then the resulting Java code 
> has no choice but to include code to get the session.
> 
> It it annoying that you can't specify session="isAlredyExists" or 
> something like that...
> 
> -chris
> 


-- 
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message