RE: newbie session problem

2003-10-28 Thread geraldine
Thanks everyone for the useful input!
I'm using weblogic 7.0 and in the end I added some weblogic.xml to my
web app and for some funny, uncanny reason, it works! I think by doing
that might have enabled the url rewriting on the server side. *big slap
to forehead*
Thanks again to Geeta! 

-Original Message-
From: Mahesh Joshi [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 29, 2003 10:48 AM
To: 'Struts Users Mailing List'
Subject: RE: newbie session problem

Hi Geraldine,

What application server are you using?

I had a similar problem on Tomcat 4.1.24. I put in a simple filter to
print
out session information to debug the issue. 

Upgrading to 4.1.27 fixed the problem.

Thanks!

Mahesh

--
Mahesh Joshi
W- 408-543-7214
M- 408-829-8051
[EMAIL PROTECTED]



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 1:51 AM
To: U[EMAIL PROTECTED]
Subject: newbie session problem


My struts application has a link to another jsp. but 
everytime i click on this link, the jsp creates a new session. 

I've tried practically everything, html:link, 
%response.encodeURL()% and even manually appending the 
jsessionid to the end of the url to this jsp, but it just 
keeps on creating those new sessions. Is there something i'm 
missing out? the funny thing is that the rest of my links 
work fine (just this fiddly one) and the even cuter thing is 
that sometimes it works and sometimes it doesn't! i'm trying 
not to use cookies to store my session. am i missing 
something out here? 

thanks



-
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]




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



newbie session problem

2003-10-27 Thread geraldine
My struts application has a link to another jsp. but everytime i click on this link, 
the jsp creates a new session. 

I've tried practically everything, html:link, %response.encodeURL()% and even 
manually appending the jsessionid to the end of the url to this jsp, but it just keeps 
on creating those new sessions. Is there something i'm missing out? the funny thing is 
that the rest of my links work fine (just this fiddly one) and the even cuter thing is 
that sometimes it works and sometimes it doesn't! i'm trying not to use cookies to 
store my session. am i missing something out here? 

thanks



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



RE: newbie session problem

2003-10-27 Thread geraldine
Thanks! The forward works great but the problem with the session still
exists. My page only works when I enable cookies. However, I'm still
looking for other solutions using url rewriting which somehow doesn't
work! Can anyone else enlighten me or is my question just too trivial?
Regards,
Geraldine

-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 27, 2003 9:35 PM
To: Struts Users Mailing List
Subject: Re: newbie session problem

Hi!  this doesn't explain why a new session is created, but in the link
in your original jsp do not link directly to the second jsp: it's a bad
practice anyway since it breaks MVC.  Instead use something like this:

html:link page=/goToJsp2.doJsp 2/html:link

In your struts-config.xml, add this action mapping:

action path=/goToJsp2
parameter=path_to_jsp2
type=org.apache.struts.actions.ForwardAction /

My guess is you should be alright then.. (Read up on
org.apache.struts.actions.ForwardAction in the docs if necessary..)

hth,
Geeta

[EMAIL PROTECTED] wrote:

 My struts application has a link to another jsp. but everytime i click
on this link, the jsp creates a new session.

 I've tried practically everything, html:link,
%response.encodeURL()% and even manually appending the jsessionid to
the end of the url to this jsp, but it just keeps on creating those new
sessions. Is there something i'm missing out? the funny thing is that
the rest of my links work fine (just this fiddly one) and the even cuter
thing is that sometimes it works and sometimes it doesn't! i'm trying
not to use cookies to store my session. am i missing something out here?

 thanks

 -
 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]




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