private String theMultiEditingPath = "managing";
public int doStartTag() {
try {
ConfBean confBean = (ConfBean) pageContext.findAttribute("confBean");
UserBean userBean = (UserBean) pageContext.findAttribute("userBean");
ViewBean viewBean = (ViewBean) pageContext.findAttribute("viewBean");
EditingBean editingBean = (EditingBean) pageContext.findAttribute("editingBean");
WorkFlowBean workFlowBean = (WorkFlowBean) pageContext.findAttribute("workFlowBean");
JspWriter out = pageContext.getOut();
HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
if (request.getParameter("infoFlag") != null && request.getParameter("infoFlag").equals("true")) {
return EVAL_BODY_INCLUDE;
}
MultiEditingManager editingManager = new MultiEditingManager(request.getParameterMap(), confBean, userBean, workFlowBean);
if (editingBean != null) {
editingManager.setTheXML(editingBean.getXmlBuilder());
} else if (viewBean != null) {
editingManager.setTheXML(viewBean.getXmlBuilder());
}
XMLBuilder builderManaging = null;
if (getConfFile().equals("bar-vis")) {
List<String> confControl = new ArrayList<String>();
confControl.add(getConfFile());
confBean = editingManager.rewriteMultipleConf(confControl);
builderManaging = confBean.getTheXMLConfBarVis();
} else if (getConfFile().equals("bar-query")) {
List<String> confControl = new ArrayList<String>();
confControl.add(getConfFile());
confBean = editingManager.rewriteMultipleConf(confControl);
builderManaging = confBean.getTheXMLConfBarQuery();
} else if (getConfFile().equals("bar-preinsert")) {
List<String> confControl = new ArrayList<String>();
confControl.add(getConfFile());
confBean = editingManager.rewriteMultipleConf(confControl);
builderManaging = confBean.getTheXMLConfBarPreInsert();
} else if (getConfFile().equals("bar-nav")) {
List<String> confControl = new ArrayList<String>();
confControl.add(getConfFile());
confBean = editingManager.rewriteMultipleConf(confControl);
builderManaging = confBean.getTheXMLConfBarNav();
} else if (getConfFile().equals("bar-managing")) {
List<String> confControl = new ArrayList<String>();
confControl.add(getConfFile());
confBean = editingManager.rewriteMultipleConf(confControl);
builderManaging = confBean.getTheXMLConfBarManaging();
} else if (getConfFile().equals("bar-edt")) {
List<String> confControl = new ArrayList<String>();
confControl.add(getConfFile());
confBean = editingManager.rewriteMultipleConf(confControl);
builderManaging = confBean.getTheXMLConfBarEdt();
} else if (getConfFile().equals("bar-docedit")) {
List<String> confControl = new ArrayList<String>();
confControl.add(getConfFile());
confBean = editingManager.rewriteMultipleConf(confControl);
builderManaging = confBean.getTheXMLConfBarDocEdit();
} else {
builderManaging = new XMLBuilder("root");
}
// System.out.println(ExpressionEvaluationUtils.evaluateString(builderManaging.getXML("ISO-8859-1"), builderManaging.getXML("ISO-8859-1"), pageContext));