@Override
    public int doStartTag() throws JspException {
        try {
            JspWriter out = pageContext.getOut();
            if (status == 0) {
                out.write("<option class='" + invalClass + "' value='" + value + "'>");

            } else if(status == 1) {
                if (date != null) {
                    Date currDate = new Date();
                    if (date.after(currDate)) {
                        out.write("<option class='" + valClass + "' value='" + value + "'>");
                    } else {
                        out.write("<option class='" + invalDateClass + "' value='" + value + "'>");
                    }
                } else {
                    out.write("<option class='" + valClass + "' value='" + value + "'>");
                }
            }
        } catch (IOException e) {
            throw new JspTagException(e.getMessage());
        }
        return EVAL_BODY_INCLUDE;
    }