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

s:url tag does not provide forceAddSchemeHostAndPort parameter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.10, 2.1.0
    • Plugin - Tags
    • None

    Description

      URLHelper#buildUrl provides a parameter called forceAddSchemeHostAndPort, that is not settable from s:url tags (according to http://struts.apache.org/2.x/docs/url.html).

      ./core/src/main/java/org/apache/struts2/components/URL.java uses :

      result = UrlHelper.buildUrl(_value, req, res, parameters, scheme, includeContext, encode);

      where it could use the following prototype :
      UrlHelper#buildUrl(String action, HttpServletRequest request, HttpServletResponse response, Map params, String scheme, boolean includeContext, boolean encodeResult, boolean forceAddSchemeHostAndPort)

      Regards,
      Sami Dalouche

      Attachments

        Activity

          People

            jholmes James Holmes
            samokk Sami Dalouche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: