Hi Alex,

I've finally discovered why the jsessionid appended to the html:rewrites, links, and images was breaking my app.

As it turns out, the apache-tomcat connectors were configured to handle anything going to /WEB-INF, *.do, *.jsp. Unfortunately, jsessionid is handled properly only via tomcat... not apache alone. As such, to fix the problem, I just setup the connectors to handle all traffic going to the site. In other words, handling / & /* rather than just handling /WEB-INF, *.do, *.jsp.

Just thought I'd post my solution for the benefit of others who might be having the same problem.

Aladin



ALEX HYDE wrote:
Aladin,

I'm no expert so I can't tell exactly what's wrong
from what you're saying. Have u ripped out those url's
to the images (with and without SID) and just tried
them in a browser direct? Make sure it can find them
and see if it serves them up in both cases. If it
can't find them with a SID attached maybe there is a
filter checking for sessions and stopping non-valid
sessions? I'm guessing here and I'm sure I'm one of
the lesser qualified to answer. I'm guessing that the
path itself should always resolve to the image, the
question is whether something is stopping it (eg: a
filter).

Gluck. My knowledge ends about here I'm afraid.

--- Aladin Alaily <[EMAIL PROTECTED]> wrote:


Hmmm... that's interesting.

It looks as though I have no control on whether or
not the SID is
appended.  The first time my page is loaded, the SID
is appended and the
images & links don't resolve.  If I reload the page,
the SID are removed
and everything resolves.

I am using Tomcat 5.5.12 and the following jars &
tlds:

struts-1.2.7.jar
commons-beanutils-1.7.0.jar
commons-collections-3.1.jar
commons-digester-1.7.jar
commons-logging-api-1.0.4.jar
standard-1.1.2.jar

servlet-api.jar -> Tomcat's
jsp-api.jar     -> Tomcat's

struts-bean-1.1.tld
struts-html-1.1.tld
struts-logic-1.1.tld
struts-nested-1.1.tld
c-1.1.2.tld


Aladin



It works for me.

I would guess that this is pretty standard HTTP to

be

honest. It should resolve the images by stripping

off

any unnecessary SID info' etc, if you don't use it

for

security checking for example. I thought that the
requests for images are exactly the same as a

request

for any other resource, ie, a standard HTTP

request

and therefore the SID is appended unless you
explicitly turn it off. Your web server should
resoplve the path of the url whether or not there

is a

SID attached.

--- Aladin Alaily <[EMAIL PROTECTED]> wrote:


That's not normal...  If you add the semi-colon

and

the jsessionid to an
image src, then the image is not going to resolve
properly.  That's the
behaviour that I'm noticing - with the

jsessionid,

the links & images
don't resolve.

Aladin




That's normal. What's wrong with that?

--- Aladin Alaily <[EMAIL PROTECTED]> wrote:


Hi,

I am using <html:img> and <html:link> tags but

when

they are evaluated a
jsessionid is appended:

Image Example:
--------------
<html:img page="/images/x.gif" height="10"

width="1"

/>

GIVES

<img


src="/images/x.gif;jsessionid=1F69046A7709D30FD9AC36FC6E8A4336"

height="10" width="1">

Link Example:
-------------
<link href="<html:rewrite

page="/css/styles.css"

/>"

rel="stylesheet"
type="text/css">

GIVES

<link


href="/css/styles.css;jsessionid=1F69046A7709D30FD9AC36FC6E8A4336"

rel="stylesheet" type="text/css">

Has anyone experienced this before?  If so,

how

did

you fix this problem.

I am using struts 1.7

Thanks.
Aladin



---------------------------------------------------------------------

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









___________________________________________________________

Yahoo! Messenger - NEW crystal clear PC to PC

calling worldwide with

voicemail http://uk.messenger.yahoo.com



---------------------------------------------------------------------

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]









___________________________________________________________

Yahoo! Messenger - NEW crystal clear PC to PC

calling worldwide with

voicemail http://uk.messenger.yahoo.com



---------------------------------------------------------------------

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]






                
___________________________________________________________ Yahoo! Model Search 2005 - Find the next catwalk superstars - http://uk.news.yahoo.com/hot/model-search/

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