code: private static void createTokenHiddenField(Controller controller, String tokenName, String tokenId) {
  		StringBuilder sb = new StringBuilder();
  		sb.append("<input type='hidden' name='").append(tokenName).append("' id='").append(tokenName).append("' value='").append(tokenId).append("' />");
  		controller.setAttr("token", sb.toString());
  	}
docs: Use ${token!} in view for generate hidden input field.