You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/11/01 18:32:33 UTC

DO NOT REPLY [Bug 14173] New: - tag library adds ;jsessionid even if the url is 'javascript:...'.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14173>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14173

<html:link> tag library adds ;jsessionid even if the url is 'javascript:...'.

           Summary: <html:link> tag library adds ;jsessionid even if the url
                    is 'javascript:...'.
           Product: Struts
           Version: 1.0 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: martink@handysoft.com


I set 'url rewriting' option enable in WebSphere 4.0.3.
I modified 'AppServer/config/server-cfg.xml' to change the value 
of 'enableUrlRewriting' attribute by 'true'.

And I put a <html:link> tag like the following:

<html:link href="javascript:openPrefWindow()">Preference</html:link>

In this case, the <A> tag written to client browser is like the following:

<a href="javascript:openPrefWindow();jsessionid=0000XYZXYZXYZ:-">Preference</a>

I think the <html:link> tag library adds the jsessionid for all links.
I think if the href value starts with "javascript:", then it doesn't have to 
add the 'jsessionid'. The above result is making a javascript error.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>