getJspContext().getOut().write(e.toString());
throw new JspTagException(e);
    public void doTag() throws JspException, IOException {        JspContext jctxt = getJspContext();        try {            ZMailbox mbox = getMailbox();            ZSearchParams params = new ZSearchParams(mQuery);            params.setOffset(mOffset);            params.setLimit(mLimit);            params.setSortBy(mSortBy);            params.setTypes(mTypes);            params.setFetch(mFetch);            params.setPeferHtml(mWantHtmlSet ? mWanthtml : mbox.getPrefs().getMessageViewHtmlPreferred());            params.setMarkAsRead(mMarkread);            ZSearchResult searchResults = mConvId == null ? mbox.search(params) : mbox.searchConversation(mConvId, params);            if (mSearchContext != 0) {                SearchContext sc = getSearchContext(jctxt, mSearchContext);                if (sc == null) mSearchContext = 0;                else sc.setSearchResult(searchResults);            }            if (mOffset == 0 || mSearchContext == 0) {                mSearchContext = putSearchContext(jctxt, searchResults);            }            jctxt.setAttribute(mVar, new ZSearchResultBean(searchResults, params),  PageContext.PAGE_SCOPE);        } catch (ServiceException e) {            getJspContext().getOut().write(e.toString());        }    }