I originally thought it said <html:image> instead of <html:img> . I noticed that <html:image> does not have height and width. When I look at my HTML Pocket Reference, I see only align, src and name listed for <input type="image"..., but from testing I know that height and width work for that tag in both mozilla and IE. Would it be worth adding height and width to the <html:image> tag?
I'd be willing to take a whack at this one. Should this wait until after 1.2 so that can be wrapped up? I've been putting some other minor stuff on hold that I wanted to mention until after the release.
If sizeKey was added to <html:img>, this brings up an issue. In the many places where we have sizes, there is not a key version of it. Text attributes like alt and title have resource versions like altKey and titleKey. Number attributes like size, width and height do not. While it's not a common thing to need varied sizes for numerical values, it's very plausible. Is it worth complicating the AI?
Paul Sundling
[EMAIL PROTECTED] wrote:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26647
srcKey in <html:img/> tag needs matching size keys.
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.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]