Package atg.servlet.pagecompile

Examples of atg.servlet.pagecompile.PageEncodingTyper


      doAdditionalAttributes (formAttrs);

      //render the FORM tag
      renderTagStart("form",formAttrs);

      PageEncodingTyper et = Utils.getEncodingTyper();

      /*
       * If we the "useCharsetParameter" flag is enabled for this type of form
       * (either POST or GET) spit out a hidden tag so that the form gets
       * parsed with the encoding specified by this page.
       */
      if (et != null) {
        if ((isPost && et.getUsePostCharsetParameter()) ||
            (!isPost && et.getUseGetCharsetParameter())) {
          String encoding = mPageContext.getResponse().getCharacterEncoding();
          if (encoding != null) {
            Properties inputAttrs = new Properties();
            inputAttrs.put("type","hidden");
            inputAttrs.put("name",et.getCharsetParameterName());
            inputAttrs.put("value",encoding);
            renderTag("input",inputAttrs);
            //out.println();
            //out.print("<input type=\"hidden\" name=\"");
            //out.print(et.getCharsetParameterName());
View Full Code Here

TOP

Related Classes of atg.servlet.pagecompile.PageEncodingTyper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.