Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/DISPL-105 Here is an overview of the issue: --------------------------------------------------------------------- Key: DISPL-105 Summary: https hrefs in Table get generated as http Type: Bug Status: Unassigned Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: DisplayTag Components: Tag Library Versions: 1.0 RC2 Assignee: Reporter: Ted X. Toth Created: Thu, 11 Nov 2004 5:29 PM Updated: Thu, 11 Nov 2004 5:29 PM Description: If you are on a secure page generated links like sortable column headers aren't generated as https but rather http. This only occurs as far as I know on WebLogic on Windows. In TableTag.java in the initHref method I've added some code to fix this problem: protected void initHref(RequestHelper requestHelper) { // get the href for this request Href normalHref = requestHelper.getHref(); if (this.requestUri != null) { // if user has added a requestURI create a new href // call encodeURL to preserve session id when cookies are disabled String encodedURI = ((HttpServletResponse) this.pageContext.getResponse()).encodeURL(this.requestUri); // Added as work around for WebLogic StringBuffer encodedURIBuf = new StringBuffer(encodedURI); if (((HttpServletRequest) this.pageContext.getRequest()).getScheme() == "https" && !encodedURIBuf.toString().startsWith("https")) { encodedURIBuf.replace(0, 4, "https"); encodedURI = encodedURIBuf.toString(); } this.baseHref = new Href(encodedURI); // ... and copy parameters from the current request Map parameterMap = normalHref.getParameterMap(); this.baseHref.addParameterMap(parameterMap); } else { // simply copy href this.baseHref = normalHref; } } I don't care if you use this code as long as it gets fixed and I don't have to patch each release. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel