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.do">Jsp 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]

Reply via email to