Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.sction.mvc.viewrender.freemarker;
 
 import java.util.Map;

public abstract class RoleTag extends SecureTag {
    String getName(Map params) {
        return getParam(params"name");
    }
    @Override
    public void render(Environment envMap paramsTemplateDirectiveBody bodythrows IOExceptionTemplateException {
        boolean show = showTagBody(getName(params));
        if (show) {
            renderBody(envbody);
        }
    }
    protected abstract boolean showTagBody(String roleName);
New to GrepCode? Check out our FAQ X