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

html:image takes a "module-aware" path but does not allow module to be specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.5
    • 1.3.6
    • Tag Libraries
    • None

    Description

      I am using Struts modules, but I have images that span modules placed at the root of my web application. I am attempting to use the <html:image> tag to render a <input type="image"> entry. Unfortunately, while the Taglib docs says that page is "The module-relative path of the image for this input tag" the tag does not actually accept the module attribute. So, you've either got to use src and specify the entire path or use a relative path. Or, you can just fix the tag...

      I've actually done the latter, basing the code off of what <html:img> does. I was hoping to be able to attach it here, but not sure how...

      Attachments

        1. ImageTag.java
          8 kB
          Michael Coram

        Activity

          People

            niallp Niall Pemberton
            mtc3bmtc3b Michael Coram
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: