Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3095

URL has no setEncoding

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.6
    • Fix Version/s: Future
    • Component/s: Plugin - Tags
    • Labels:
      None
    • Environment:

      Struts 2.1.6
      TC 6.0.14
      JDK 1.6.0.10

    • Flags:
      Patch

      Description

      If I set encoding the encoding to UTF-8 in struts.properties as

      struts.i18n.encoding=UTF-8

      //If I implement the include tag I see all appropriate annotations e.g.
      @StrutsTag(name="include", tldTagClass="org.apache.struts2.views.jsp.IncludeTag", description="Include a servlet's output " +
      "(result of servlet or a JSP page)")
      public class Include extends Component {

      //more importantly the include will support the STRUTS_I18N_ENCODING DefaultEncoding with this inject //annotation
      @Inject(StrutsConstants.STRUTS_I18N_ENCODING)
      public void setDefaultEncoding(String encoding)

      { defaultEncoding = encoding; }

      //but viewing the URL code I see

      @StrutsTag(name="url", tldTagClass="org.apache.struts2.views.jsp.URLTag", description="This tag is used to create a URL")
      public class URL extends ContextBean

      //there is no setDefaultEncoding which means any new encodings in struts.properties will not be reflected here

      MCG 22 April 09

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mgainty Martin Gainty
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: