Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 import  javax.servlet.jsp.JspException;
 import  javax.servlet.jsp.JspTagException;
 import  javax.servlet.jsp.tagext.TagSupport;
 
 public class NRTL_Sample extends TagSupport {
     private String sample;
     private String sample2;
 
    public void setSample(String s) {
         = s;
    }
    @Override
    public int doStartTag() throws JspException {
        try {
             += Math.random();
             += ;
            pageContext.getOut().print();
        } catch (Exception ex) {
            throw new JspTagException("NRTL_Sample: " + ex.getMessage());
        }
        return SKIP_BODY;
    }
    public void setSample2(String s) {
         = s;
    }
    @Override
    public int doEndTag() {
        return EVAL_PAGE;
    }
New to GrepCode? Check out our FAQ X