Skip to content

Instantly share code, notes, and snippets.

@wmfairuz
Created June 3, 2014 04:41
Show Gist options
  • Save wmfairuz/a3b34c83f5d912058e0f to your computer and use it in GitHub Desktop.
Save wmfairuz/a3b34c83f5d912058e0f to your computer and use it in GitHub Desktop.
HTML form skeleton
<c:set var="action" value="${url.base}"/>
<template:tokenizedForm>
<form action="<c:url value='${action}'/>" method="post">
<input type="hidden" name="originUrl" value="${pageContext.request.requestURL}"/>
<input type="hidden" name="jcrNodeType" value="jnt:company"/>
<input type="hidden" name="jcrRedirectTo" value="<c:url value='${url.base}${renderContext.mainResource.node.path}'/>"/>
<input type="hidden" name="jcrNewNodeOutputFormat" value="html"/>
</form>
</template:tokenizedForm>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment