You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2007/08/27 04:56:34 UTC
[jira] Updated: (STR-1962) [taglib] srcKey in tag needs
matching size keys.
[ https://issues.apache.org/struts/browse/STR-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict updated STR-1962:
-------------------------------
Fix Version/s: 1.4.0
Assignee: (was: Struts Developers)
> [taglib] srcKey in <html:img/> tag needs matching size keys.
> ------------------------------------------------------------
>
> Key: STR-1962
> URL: https://issues.apache.org/struts/browse/STR-1962
> Project: Struts 1
> Issue Type: Improvement
> Components: Taglibs
> Affects Versions: 1.1.0
> Environment: Operating System: All
> Platform: All
> Reporter: Danilo Gurovich
> Priority: Minor
> Fix For: 1.4.0
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.