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());