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

<html:base /> enhancement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Future
    • 1.3 Family
    • Extras
    • None
    • Operating System: Windows 2000
      Platform: PC
    • 33426

    Description

      This enhancement is to the <html:base> tag. The reason for this enhancement
      request is that the base tag as it stands only points to the jsp file that it is
      contained in. However the base tag is exceptionally useful when pointed at the
      root of the URL.

      My proposal is to add an optional attribute to the <html:base> tag. If the
      attribute is missing (or is set to false) then the tag acts as it normally does.
      With the addition of the attribute being set to "true" then the tag points to
      the root of the URL (ie //www.mysite.com/ or //locahost/mysite/).

      Currently the only way of getting this is currently to have a block of
      JavaScript code in every webpage and still needs to be set for each site and
      copied into everypage.

      tag: base
      attributes:

      • root : Optional. Boolean value that determines whether the base tag points at
        the root URL or the current page. The default is false.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--BaseTag.java.diff
          2 kB
          Allen Fogleson
        2. ASF.LICENSE.NOT.GRANTED--root.js
          0.2 kB
          Graham Reeds
        3. ASF.LICENSE.NOT.GRANTED--struts-html.tld
          72 kB
          Allen Fogleson

        Activity

          People

            dsevans93 David Evans
            grahamr@ntlworld.com Graham Reeds
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: