Hi pid,

I used a JavaBean to pass the parameter, the sentence is like this:
<jsp:useBean id="bean" scope="session" class="com.xxx.bean.MessageBean" />
And the scope is session, in the Jsp page, I use this JavaBean like this:
Message msg = bean.getMessage();

And in the object of Message, I stored a MMS(Multimedia Message Service, 
include video and audio files), and I will get this MMS file later on.

But after testing, I found that, sometimes I executed the sentence "Message msg 
= bean.getMessage();", and the variable msg return null.
But most time, it works well, and return a correct object.

Could you tell me the reason? Or is something I have done wrong?


-----Original Message-----
From: Pid [mailto:p...@pidster.com] 
Sent: 2009年12月7日 18:21
To: users@tomcat.apache.org
Subject: Re: the Tomcat generates more than one session id with the same http 
request, please help me

On 07/12/2009 08:22, Peter Chen wrote:
> Hi, all
>
>
>
> I am testing a website with the server Tomcat.  I am using Tomcat
> 5.5.26, and I found one problem.
>
>
>
> The website is used to display audio files. After I log in the website,
> I can see the icon of the audio file. But after I press the button
> "play", it has different results with different browsers.
>
> When I use firefox3.5.5 and Google Chrome 3.0, I found the Tomcat will
> create more than one session id, and it can not be played.

What bearing does the session have on this?
Are you storing data in it?

> But if I use IE6.0/IE7.0/IE8.0, I found there is only one session id,
> and it plays well.
>
> I don't know the reason, has someone met this problem before,  please
> help me to solve this problem, thanks.

Are you properly encoding all link URLs on each page with 
HttpServletResponse.encodeURL()?


p



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to