servlet-spec
  1. servlet-spec
  2. SERVLET_SPEC-161

Allow request/response encoding to be set from deployment descriptor and API

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Configuration
    • Labels:
      None
    • Sprint:
      MS 4 Sprint 1, MS 4 Sprint 2

      Description

      SD> Request/Response Encoding

      SD> At the moment the spec explicitly states that these default to
      SD> ISO-8859-1, which made sense at the time as this was the default
      SD> character encoding for HTML4. HTML5 has changes this however and now
      SD> defaults to UTF-8.

      SD> To address this I think we need to allow the default to be controlled
      SD> in web.xml via a <default-encoding> element. This element will only
      SD> affect the request and response encoding, and will override any spec
      SD> mandated default. Obviously if the encoding is explicitly specified
      SD> the default will not be used.

        Issue Links

          Activity

          Hide
          Shing Wai Chan added a comment -

          Sending deployment.fm
          Sending requestobject.fm
          Sending responseobject.fm
          Sending servlet.book
          Sending servletcontext.fm
          Sending sessions.fm
          Sending status.fm
          Transmitting file data .......done
          Committing transaction...
          Committed revision 128.

          Show
          Shing Wai Chan added a comment - Sending deployment.fm Sending requestobject.fm Sending responseobject.fm Sending servlet.book Sending servletcontext.fm Sending sessions.fm Sending status.fm Transmitting file data .......done Committing transaction... Committed revision 128.
          Hide
          Shing Wai Chan added a comment -

          Rename request/response-encoding to request/response-character-encoding:

          Sending javaee8/src/web-app_4_0.xsds
          Sending javaee8/test/web-app-complete.xml
          Sending javaee8/test/web-app.xml
          Transmitting file data ...done
          Committing transaction...
          Committed revision 64791.

          Show
          Shing Wai Chan added a comment - Rename request/response-encoding to request/response-character-encoding: Sending javaee8/src/web-app_4_0.xsds Sending javaee8/test/web-app-complete.xml Sending javaee8/test/web-app.xml Transmitting file data ...done Committing transaction... Committed revision 64791.
          Hide
          Shing Wai Chan added a comment -

          Sending deployment.fm
          Sending requestobject.fm
          Sending responseobject.fm
          Sending servlet.book
          Sending status.fm
          Transmitting file data .....done
          Committing transaction...
          Committed revision 131.

          Show
          Shing Wai Chan added a comment - Sending deployment.fm Sending requestobject.fm Sending responseobject.fm Sending servlet.book Sending status.fm Transmitting file data .....done Committing transaction... Committed revision 131.
          Hide
          Shing Wai Chan added a comment -

          Sending deployment.fm
          Sending images/web-app.png
          Transmitting file data ..done
          Committing transaction...
          Committed revision 132.

          Show
          Shing Wai Chan added a comment - Sending deployment.fm Sending images/web-app.png Transmitting file data ..done Committing transaction... Committed revision 132.
          Hide
          Shing Wai Chan added a comment -

          r134 | swchan2 | 2017-03-14 21:34:55 -0700 (Tue, 14 Mar 2017) | 2 lines

          update web-app diagram

          Show
          Shing Wai Chan added a comment - r134 | swchan2 | 2017-03-14 21:34:55 -0700 (Tue, 14 Mar 2017) | 2 lines update web-app diagram

            People

            • Assignee:
              Shing Wai Chan
              Reporter:
              Ed Burns
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Agile