Methods Summary |
---|
public int | doAfterBody()Method for processing the body content of the tag.
BodyContent body = getBodyContent();
try {
body.writeOut(getPreviousOut());
} catch (IOException e) {
throw new JspTagException("IterationTag: " + e.getMessage());
}
// clear up so the next time the body content is empty
body.clearBody();
partNum++;
if (partNum < numParts) {
getPart();
return BodyTag.EVAL_BODY_TAG;
} else {
return BodyTag.SKIP_BODY;
}
|
public int | doStartTag()Method for processing the start of the tag.
messageInfo = (MessageInfo)pageContext.getAttribute(getMessageinfo());
attachmentinfo = new AttachmentInfo();
try {
multipart = (Multipart)messageInfo.getMessage().getContent();
numParts = multipart.getCount();
} catch (Exception ex) {
throw new JspException(ex.getMessage());
}
getPart();
return BodyTag.EVAL_BODY_TAG;
|
public java.lang.String | getMessageinfo()messageinfo attribute getter method.
return messageinfo;
|
private void | getPart()Helper method for retrieving message parts.
try {
attachmentinfo.setPart(partNum, multipart.getBodyPart(partNum));
pageContext.setAttribute(getId(), attachmentinfo);
} catch (Exception ex) {
throw new JspException(ex.getMessage());
}
|
public void | setMessageinfo(java.lang.String messageinfo)messageinfo attribute setter method.
this.messageinfo = messageinfo;
|