Q: Override name attribute in own tag in spring-mvc I wrote my own tag in the tag library descriptor and its implementation in java.
public class ProtectedHidden extends AbstractHtmlElementTag {

     @Override
     protected int writeTagContent(TagWriter tagWriter) throws JspException {
        String hash = (String) super.pageContext.getSession().getAttribute("CSRFTokenManager.tokenval");
        String oldValue = getDisplayString(getBoundValue(), getPropertyEditor());
        String newValue = DESedeEncryption.encrypt(oldValue + "|" + hash.replace("-", ""), hash);
        String oldName = (String) super.getPath();
        String newName = "zf_" + oldName;

        tagWriter.startTag("input");
        writeDefaultAttributes(tagWriter);
        tagWriter.writeAttribute("type", "hidden");
        tagWriter.writeAttribute("name", newName);
        tagWriter.writeAttribute("value", processFieldValue(getName(), newValue, "hidden"));
        tagWriter.endTag();
        return SKIP_BODY;
    }
}

I'm trying to set attribute name, but rendered element has old name. I tried to set name by processFieldValue, but nothing has changed. How can I do it?
