如果l!=operV
那么跳出到标号为MISSING_BLOCK_LABEL_670的程序段
那么跳出到标号为MISSING_BLOCK_LABEL_670的程序段
解决方案 »
- 怪!第三行和最后行 m_id = 0 ,为什么不是1和4?
- Hashtable<String,String> aaa 是什么意思?
- 提取String内容到数据库
- 【IReport】最后一个问题,如何在IReport中显示表格线(table)?
- tree的每个节点旁如何加上checkbox以实现统一删除
- 请教:awt
- 有专科毕业的在搞编程的吗,近来谈谈(分不多,随便来说两句)
- 怎么创建多级路径?
- Happy new year everyone!
- 高分求编辑器源码
- javah Hello 为什么出错:Class Hello could not be found
- 挺好的一个FTP,挺多java的学习资料,推荐一下!
package com.tcledu.publish.control;import com.tcledu.common.*;
import com.tcledu.publish.model.Info_catalog;
import com.tcledu.publish.model.Logo;
import com.tcledu.publish.util.PptLoader;
import java.io.IOException;
import java.io.PrintStream;
import java.sql.Connection;
import java.sql.SQLException;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.*;// Referenced classes of package com.tcledu.publish.control:
// Actionpublic class BannerAction extends Action
{ public BannerAction()
{
operV = 4;
oper = "";
} public void run()
throws ServletException, IOException
{
String s3;
String s4;
Logo logo;
response.setContentType("text/html;charset=GBK");
String s = request.getParameter("update.x");
String s1 = request.getParameter("insert.x");
String s2 = request.getParameter("clean.x");
s3 = request.getParameter("banner_id");
s4 = request.getParameter("pageno");
fileRealPath = application.getRealPath("/");
saveFilePath = PptLoader.getPptValue("tclinfo", "uploadpath");
org_sub_id = (String)session.getAttribute("org_sub_id");
if(org_sub_id == null)
{
ScriptClose("\u4F60\u7684\u6709\u5173\u4FE1\u606F\u5DF2\u7ECF\u4E22\u5931,\u8BF7\u91CD\u65B0\u767B\u5F55\uFF01\uFF01");
return;
}
String s5 = request.getParameter("nofileback");
oper = request.getParameter("oper");
logo = new Logo();
if(s1 != null || s5 != null && s5.equals("1"))
{
request.setAttribute("catalogValue", logo.getCatalogValue());
request.setAttribute("insert", "1");
dispatch("bannerwork");
return;
}
if(s != null || s5 != null && s5.equals("2"))
oper = "10";
else
if(s2 != null)
oper = "11";
if(oper != null)
operV = Integer.parseInt(oper.trim());
this;
if(operV != 4)
{
this;
if(operV != 10)
{
this;
if(operV != 2)
{
this;
if(operV != 12)
{
this;
if(operV != 11)
try
{
ufc = new UpFileClass(request);
ul = ufc.getUPObject();
}
catch(Exception exception)
{
System.out.println("\u6CA1\u6709\u521D\u59CB\u5316\uFF01\uFF01");
ScriptBack("\u64CD\u4F5C\u65F6\u6570\u636E\u5931\u8D25\uFF01\uFF01");
}
}
}
}
}
conn = DatabaseUtil.getConnection();
logo.setConn(conn);
this;
if(1 != operV)
break MISSING_BLOCK_LABEL_670;
String s6 = ul.getStringField("catalog_id");
logo.initRst("logo_type=1 and catalog_id=" + s6);
if(logo.getRowCount() > 0)
{
ScriptBack("\u6B64\u9891\u9053\u5DF2\u6709\u5E7F\u544A\u56FE\u7247\uFF0C\u4E0D\u80FD\u65B0\u589E\uFF01\uFF01");
break MISSING_BLOCK_LABEL_1554;
}
{
if(logo.insert())
{
ScriptLocation("\u5E7F\u544A\u4F4D\uFF0C\u6DFB\u52A0\u6210\u529F\uFF01\uFF01", "BannerServlet.php?oper=4&org_sub_id=" + org_sub_id);
} else
{
conn.rollback();
ufc;
UpFileClass.DelFile(fileRealPath + ufc.getAfterFileName());
ScriptBack("\u6709\u4FE1\u606F\u9879\u586B\u5199\u9519\u4E86\uFF0C\u8BF7\u91CD\u65B0\u586B\u5199\uFF01\uFF01");
}
break MISSING_BLOCK_LABEL_1554;
}
if(OperData(logo, operV) == 0)
{
ScriptBack("\u64CD\u4F5C\u65F6\u6570\u636E\u5931\u8D25\uFF01\uFF01");
break MISSING_BLOCK_LABEL_1554;
}
if(OperData(logo, operV) != 2)
break MISSING_BLOCK_LABEL_1554;
ScriptLocation("\u8BF7\u4E0A\u4F20\u6B63\u786E\u7684\u4E14\u6709\u5185\u5BB9\u7684\u6587\u4EF6\uFF01\uFF01", "BannerServlet.php?nofileback=1");
try
{
if(logo != null)
logo.close();
if(ic != null)
ic.close();
}
catch(Exception exception7) { }
try
{
if(conn != null)
conn.close();
}
catch(Exception exception8) { }
return;
this;
if(3 != operV)
{
this;
if(operV != 10)
break MISSING_BLOCK_LABEL_1101;
}
this;
if(operV == 3)
{
s3 = ul.getStringField("banner_id");
String s7 = ul.getStringField("catalog_id");
}
logo.initRst("logo_type=1 and logo_id = " + s3);
logo.next();
this;
if(operV != 10)
break MISSING_BLOCK_LABEL_870;
request.setAttribute("catalogValue", logo.getCatalogValue());
request.setAttribute("updateoper", "3");
request.setAttribute("logobean", logo);
dispatch("bannerwork");
try
{
if(logo != null)
logo.close();
if(ic != null)
ic.close();
}
catch(Exception exception1) { }
try
{
if(conn != null)
conn.close();
}
catch(Exception exception2) { }
return;
if(OperData(logo, operV) == 1)
{
if(logo.update())
{
ScriptLocation("\u5E7F\u544A\u4F4D\uFF0C\u4FEE\u6539\u6210\u529F\uFF01\uFF01", "BannerServlet.php?oper=4&org_sub_id=" + org_sub_id);
} else
{
conn.rollback();
ufc;
UpFileClass.DelFile(fileRealPath + ufc.getAfterFileName());
ScriptBack("\u64CD\u4F5C\u65F6\u6570\u636E\u5931\u8D25\uFF01\uFF01");
}
break MISSING_BLOCK_LABEL_1554;
}
if(OperData(logo, operV) == 0)
{
ScriptBack("\u64CD\u4F5C\u65F6\u6570\u636E\u5931\u8D25\uFF01\uFF01");
break MISSING_BLOCK_LABEL_1554;
}
if(OperData(logo, operV) != 2)
break MISSING_BLOCK_LABEL_1554;
ScriptLocation("\u8BF7\u4E0A\u4F20\u6B63\u786E\u7684\u4E14\u6709\u5185\u5BB9\u7684\u6587\u4EF6\uFF01\uFF01", "BannerServlet.php?banner_id=" + s3 + "&nofileback=2");
try
{
if(logo != null)
logo.close();
if(ic != null)
ic.close();
}
catch(Exception exception3) { }
try
{
if(conn != null)
conn.close();
}
catch(Exception exception4) { }
return;
this;
{
logo.initRst("logo_type=1 and logo_id = " + s3);
if(logo.next())
{
if(logo.delete())
{
UpFileClass.DelFile(fileRealPath + logo.getImg_url());
ScriptLocation("\u5E7F\u544A\u56FE\u5220\u9664\u6210\u529F\uFF01\uFF01", "BannerServlet.php?oper=4&org_sub_id=" + org_sub_id);
} else
{
conn.rollback();
ScriptBack("\u5220\u9664\u6570\u636E\u65F6\u5931\u8D25\uFF01\uFF01");
}
} else
{
forward("BannerServlet.php?oper=4");
}
} else
{
this;
if(4 == operV)
{
if(s4 == null)
s4 = "1";
request.setAttribute("pageno", s4);
logo.initRst("(catalog_id IN (SELECT catalog_id FROM info_catalog WHERE menu_flag = 1 ) OR (catalog_id = 0)) AND (org_sub_id = 1) AND (logo_type = 1)");
request.setAttribute("logobean", logo);
dispatch("bannerview");
} else
{
this;
if(11 == operV)
{
if(s4 == null)
s4 = "1";
request.setAttribute("pageno", s4);
logo.initRst("(catalog_id NOT IN (SELECT catalog_id FROM info_catalog WHERE menu_flag = 1 )) AND (org_sub_id =1 ) AND (catalog_id <> 0) AND (logo_type=1)");
request.setAttribute("clean_lg", logo);
dispatch("bannerclean");
} else
{
this;
if(12 == operV)
{
String as[] = (String[])request.getParameterValues("clean_banner_id");
if(as.length > 0)
{
for(int i = 0; i < as.length; i++)
{
logo.initRst("logo_type=1 and logo_id = " + as[i]);
if(logo.next())
{
if(logo.delete())
UpFileClass.DelFile(fileRealPath + logo.getImg_url());
else
conn.rollback();
} else
{
forward("/publish/admin/BannerServlet.php?oper=4&org_sub_id=" + org_sub_id);
}
} ScriptLocation("\u5783\u573E\u5E7F\u544A\u56FE\u5220\u9664\u6210\u529F\uFF01\uFF01", "BannerServlet.php?oper=11&org_sub_id=" + org_sub_id);
}
}
}
}
}
try
{
if(logo != null)
logo.close();
if(ic != null)
ic.close();
}
catch(Exception exception5) { }
try
{
if(conn != null)
conn.close();
}
catch(Exception exception6) { }
break MISSING_BLOCK_LABEL_1747;
SQLException sqlexception;
sqlexception;
ScriptBack("\u6570\u636E\u5E93\u6CA1\u6709\u542F\u52A8\u6216\u6570\u636E\u672A\u88AB\u521D\u59CB\u5316\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF01\uFF01");
try
{
if(logo != null)
logo.close();
if(ic != null)
ic.close();
}
catch(Exception exception9) { }
try
{
if(conn != null)
conn.close();
}
catch(Exception exception10) { }
break MISSING_BLOCK_LABEL_1747;
Exception exception11;
exception11;
throw new ServletException(exception11);
Exception exception12;
exception12;
try
{
if(logo != null)
logo.close();
if(ic != null)
ic.close();
}
catch(Exception exception13) { }
try
{
if(conn != null)
conn.close();
}
catch(Exception exception14) { }
throw exception12;
} private int OperData(Logo logo, int i)
throws IOException, SQLException
{
catalog_id = ul.getStringField("catalog_id");
logo_desc = ul.getStringField("logo_desc");
logo_type = ul.getStringField("logo_type");
link_url = ul.getStringField("link_url");
logo.setOrg_sub_id(org_sub_id);
logo.setLink_url(link_url);
logo.setLogo_type(logo_type);
logo.setLogo_desc(logo_desc);
this;
if(i != 3)
logo.setCatalog_id(catalog_id);
if(ul.getField("photo") == null)
break MISSING_BLOCK_LABEL_192;
if(!ufc.getUpFile(fileRealPath, saveFilePath, "photo"))
break MISSING_BLOCK_LABEL_189;
if(ufc.getFileSize() > 0L)
{
this;
if(i == 3)
{
ufc;
UpFileClass.DelFile(fileRealPath.concat(logo.getImg_url()));
}
logo.setImg_url(ufc.getAfterFileName());
break MISSING_BLOCK_LABEL_202;
}
return 2;
return 2;
this;
if(i == 3)
return 1;
return 2;
return 1;
Exception exception;
exception;
exception.printStackTrace();
return 0;
} int operV;
String oper;
UpFileClass ufc;
String logo_desc;
String link_url;
String org_sub_id;
String logo_type;
String catalog_id;
String fileRealPath;
String saveFilePath;
Info_catalog ic;
Connection conn;
public static final int UpdateQUERY = 10;
public static final int Clean = 12;
public static final int CleanQuery = 11;
UpLoad ul;
}