base/struts-tools/src/main/com/thesett/common/webapp/tags/PageControlTag.java
private void renderButton(boolean render, int page, int index, String openDelim, String url, String text,
        boolean active) throws JspException
    {
        log.fine(
            "private void renderButton(boolean render, int page, int index, String openDelim, String url, String text, boolean active): called");
        log.fine("render = " + render);
        log.fine("page = " + page);
        log.fine("index = " + index);
        log.fine("openDelim = " + openDelim);
        log.fine("url = " + url);
        log.fine("text = " + text);
        log.fine("active = " + active);

        TagUtils tagUtils = TagUtils.getInstance();

        if (render)
        {
            tagUtils.write(pageContext, openDelim);

            // Only render the button as active if the active flag is set.
            if (active)
            {
                tagUtils.write(pageContext,
                    "<a href=\"" + url + "?varName=" + name + "&number=" + page + "&index=" + index + "\">" + text +
                    "</a>");
            }

            // Render an inactive button.
            else
            {
                tagUtils.write(pageContext, text);
            }

            tagUtils.write(pageContext, closeDelim);
        }
    }
private void renderButton(boolean render, int page, int index, String openDelim, String url, String text,
        boolean active) throws JspException
    {
        log.fine(
            "private void renderButton(boolean render, int page, int index, String openDelim, String url, String text, boolean active): called");
        log.fine("render = " + render);
        log.fine("page = " + page);
        log.fine("index = " + index);
        log.fine("openDelim = " + openDelim);
        log.fine("url = " + url);
        log.fine("text = " + text);
        log.fine("active = " + active);

        TagUtils tagUtils = TagUtils.getInstance();

        if (render)
        {
            tagUtils.write(pageContext, openDelim);

            // Only render the button as active if the active flag is set.
            if (active)
            {
                tagUtils.write(pageContext,
                    "<a href=\"" + url + "?varName=" + name + "&number=" + page + "&index=" + index + "\">" + text +
                    "</a>");
            }

            // Render an inactive button.
            else
            {
                tagUtils.write(pageContext, text);
            }

            tagUtils.write(pageContext, closeDelim);
        }
    }
Renders a button control as a hyperlink for the page control.

@param  render    Whether or not to render the control.
@param  page      The page number that the control links to.
@param  index     The page secondary index that the control links to.
@param  openDelim The opening delimeter to put around the control. (A snippet of HTML).
@param  url       The url of the page action handler.
@param  text      The text to render the control.
@param  active    Whether or not the control should be made active.

@throws JspException If an error occurs whilst writing out the response.