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

[taglib] srcKey in <html:img/> tag needs matching size keys.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.1.0
    • 1.4.x
    • Tag Libraries
    • None
    • Operating System: All
      Platform: All
    • 26647

    Description

      On high-traffic web sites it is necessary to add the height and width of any
      image to allow for faster and more predictable loading. Under these
      circumstances, it is very difficult to manage the images using the srcKey
      attribute since the sizes must be either hard-coded into the tag or created
      using some type of obtuse code to populate the boxes.

      It would be much more desirable to have a "sizeKey" attribute where a
      height/width of an item would be entered into a property file in a comma
      delimited form (or other agreed upon format):

      in the property file

      myImage.image = /images/someFooImage.jpg
      myImage.image.size = 180,160

      The JSP img tag would look like:

      <html:img srcKey="myImage.image" sizeKey="myImage.image.size"/>

      We are moving a high-traffic site to struts (10-12+ million hits monthly) and
      this has been a thorn in our side.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dgurovich@seebeyond.com Danilo Gurovich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: