Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-177

URL rewrite fails against <html:link href=""> in builds after 8 May 2001

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Build
    • 1.0.0
    • Tag Libraries
    • None
    • Operating System: All
      Platform: PC
    • 1717

    Description

      In nightly builds after 08-May-2001, I am encountering the rewrite.url
      error message. I am running apache 1.3.19 and tomcat 3.2.1 on win2K.
      I have also not encountered this problem with the Struts 1.0-beta-1 release.

      The message I'm getting is:
      javax.servlet.ServletException:
      Cannot create rewrite URL: java.net.MalformedURLException: no protocol: foo.html

      I am encountering this error everywhere I attempt to use the
      <html:link> tag while defining href. If I define page instead, I do not
      encounter this error. I'm guessing that previously the base URL information
      was being prepended when warranted and now it is not?
      I encounter this error when accessing the page via the apache port or the
      tomcat port. I also updated my apache httpd.conf file per the
      jakarta.apache FAQ. I realize this may be considered correct design which
      actually fixes the previous behavior now considered a bug. If so, please
      reflect this change in the b2 documentation and release notes as well.

      I see from the May 9th commit the following:
      craigmcc 01/05/09 12:31:33
      Log:
      Refactor the hyperlink-generation code used in the <bean:include>,
      <html:link>, <html:rewrite>, and <logic:redirect> tags to use common
      utility methods based on URLs rather than Strings. This will ensure
      consistency in implementation, and make it easy to provide full
      URL-processing functionality to other tags as necessary.

      and am guessing that this change introduced the problem I'm encountering.

      Thanks for Struts!

      Attachments

        Activity

          People

            craigmcc Craig R. McClanahan
            saud@cisco.com saud
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: