*/
public class ContentStepTag extends StrutsBodyTagSupport {
@Override
public int doStartTag() throws JspException {
IContentWorkFlowActionHelper helper = (IContentWorkFlowActionHelper) ApsWebApplicationUtils.getBean("jpcontentworkflowContentActionHelper", pageContext);
try {
Content content = this.getContent();
String stepCode = null;
if (this.isNextStep()) {
stepCode = helper.getNextStep(content.getStatus(), content.getTypeCode());
} else {
stepCode = helper.getPreviousStep(content.getStatus(), content.getTypeCode());
}
if (null != this.getVar()) {
ValueStack stack = this.getStack();
stack.getContext().put(this.getVar(), stepCode);
stack.setValue("#attr['" + this.getVar() + "']", stepCode, false);