On 5/4/06, Bryce Nesbitt <[EMAIL PROTECTED]> wrote:
I've just been gifted with a struts application to maintain.
Things are pretty good, but here are two little mysteries I
need a little help on. The struts jsp looks like:
<td><html:link page="/"><html:img page="/images/logo.gif"
alt="XX"
width="326" height="111" hspace="0" vspace="0" border="0"
/></html:link></td>
And the resulting HTML is like this:
<td><a href="/;jsessionid=XXXXXXXXXXX"><img
src="/images/logo.gif"
height="111" width="326" border="0" hspace="0" vspace="0"
alt="XX"></a></td>
Why the ";" in the jessionid, instead of &?
Because this is session ID, not a query parameter. You cannot read it
from Request object as a query parameter or as a mere substring of a
whole URL (this, it is not considered as a part of URL).
And why is there no "/" at the end of the img tag, which is
inconsistent with the rest of the XHTML markup.
Try wrapping your JSP page into <html:html xhtml="true> tag.
Michael.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]