Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.1.0
-
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.