| Author |
html:rewrite without the rewrite ?
|
Rich Smyth
Ranch Hand
Joined: May 30, 2002
Posts: 87
|
|
Is there an equivalent to the struts <html:rewrite> tag that does not rewrite the url? I'd like to get the path of a global forward exactly as it is defined in my struts-config (without the jsessionid appended). I can remove the ";jsessionid=whatever" myself but I was wondering if there was a an existing tag that did the job. Rich
|
 |
Marc Peabody
pie sneak
Sheriff
Joined: Feb 05, 2003
Posts: 4725
|
|
I think you answered your own question. and prints an output of my/file/path.p exactly as it is written in the global-forwards.
|
A good workman is known by his tools.
|
 |
Marc Peabody
pie sneak
Sheriff
Joined: Feb 05, 2003
Posts: 4725
|
|
Now that I think of it, perhaps you were thinking of how HttpServletResponse.encodeURL() works by tacking on the JSESSIONID. html:rewrite is different Cheers!
|
 |
Rich Smyth
Ranch Hand
Joined: May 30, 2002
Posts: 87
|
|
Let me add the following detail. I detected my problem because my page was not locating its stylesheet. When I did a view source I saw that my LINK tag has been rendered as <LINK rel="stylesheet" type="text/css" href="c:/projects/name/styles/test.css;jsessionid=7FB297FF2333933969916E218C4C56F2"> as you can see, the jsessionid has been added as though HttpServletResponse.encodeURL was involved. In my jsp I have: <LINK rel="stylesheet" type"text/css" href="<html:rewrite forward='testStyle'/>"> where testStyle is defined as a global forward. Is this how the tag is supposed to behave? Rich
|
 |
 |
|
|
subject: html:rewrite without the rewrite ?
|
|
|