首先是在jsp页面中引入相关的js文件
在body中加入流程列表,通过后天拼接json数据
具体内容请看下面代码详情吧。
首选在jsp页面中引入相关的js
添加script
在body中加入
流程列表
后台拼接json数据
package com.aegon_cnooc.oa.formconfig.action;import java.io.printwriter;import java.util.list;import javax.servlet.http.httpservletrequest;import javax.servlet.http.httpservletresponse;import org.apache.struts.action.actionform;import org.apache.struts.action.actionforward;import org.apache.struts.action.actionmapping;import com.aegon_cnooc.framework.base.action.baseaction;import com.aegon_cnooc.oa.formconfig.service.formconfigservice;import com.aegon_cnooc.oa.ibatis.to.tuoafwfto;import com.aegon_cnooc.oa.ibatis.to.tuoafwfnodesto;import com.aegon_cnooc.util.stringutil;/** * 加载流程下的节点的名称 * @author: liuxinghui * @date: 2011-9-8 * @version: 2.0 * @despcrition: */public class loadwfnodesaction extends baseaction{ private formconfigservice formconfigservice; public actionforward executeaction(actionmapping mapping, actionform form, httpservletrequest request, httpservletresponse response) throws exception { string wfid=request.getparameter(wfid); string jsonstr = [; if(stringutil.isnotempty(wfid)&&0.equals(wfid)){ list wflist=formconfigservice.findwf(); for(int i=0;i