It should be noted that jsessionid is not a Struts creation, it is a
servlet spec thing... it stands for "Java Session ID" (creative, huh??)
and is actually dealt with by your app server. The jsessionid can be
stored in a cookie on the client, or it can be appended to the request
as part of the query string, as you are seeing, which is referred to as
URL Rewriting.
Aside from enabling cookies, I don't think there is any way to hide
it... well, you could not use session at all, that would do it too :)
Someone may know something different, but I too would be interested to
know how you could hide it because it would seem to contradict the spec
if you could (assuming no cookies).
Frank
Pham Anh Tuan wrote:
thanks to MC, but ... it still doesn't work, jsessionid is still
available in URL after I add redirect to forward tag :(
help me plz :(
*************************************************
Pham Anh Tuan
Java Developer, HR Assistant
ICHI Corporation Vietnam.
Room #1001, 37 Ton Duc Thang, Dist. 1
Ho Chi Minh City, Vietnam.
Phone: (+84) (08) 9105732
Fax: (+84) (08) 9105734
Cell: (+84) (0) 989 505897
Email: [EMAIL PROTECTED]
Website: http://www.ichi-corp.jp
*************************************************
----- Original Message ----- From: "Murray Collingwood"
<[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Tuesday, November 08, 2005 10:47 AM
Subject: Re: [Help] how to erase jsessionid in URL
The jesssionid is normally used to uniquely identify the session. You
either have this or
cookies enabled. I think Struts uses cookies if they are available
and defers to the
jessionid if cookies can't be used.
If you are not using any session stuff then you can add the redirect
parameter on your
action statements as in:
<forward name="List" path="/List.do" redirect="true" />
I think this drops any session stuff.
Cheers
mc
On 8 Nov 2005 at 10:07, Pham Anh Tuan wrote:
Hi all,
I got a problem when I use Struts Framework, everytime I do a action,
Struts
automatically appends jsessionid parameter in URL
something like below:
http://localhost:8080/test/index.do;jsessionid=5DF06EA......
plz help me and show me how to erase jsessionid parameter and I don't
know is there
any effects to my web app when I erase jsessionid parameter in URL.
thank you for ur reading.
Tuan
FOCUS Computing - web design
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.8/162 - Release Date: 5/11/2005
---------------------------------------------------------------------
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]
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]