⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 csdn_文档中心_struts快速学习指南19(内部培训教材)-大部分素材来自于《programming jakarta struts》一书.htm

📁 CSDN_文档中心_Struts快速学习指南15(内部培训教材)-大部分素材来自于《Programming Jakarta Struts》一书.files
💻 HTM
📖 第 1 页 / 共 5 页
字号:
                  style="mso-spacerun: yes">&nbsp;</SPAN>* &lt;p&gt;Description: 
                  Struts</SPAN><SPAN 
                  style="FONT-SIZE: 9pt; mso-hansi-font-family: Verdana; mso-ascii-font-family: Verdana"><FONT 
                  face=宋体>内部培训</FONT></SPAN><SPAN lang=EN-US 
                  style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana">Demo&lt;/p&gt;<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;</SPAN>* &lt;p&gt;Copyright: 
                  Copyright (c) 2004&lt;/p&gt;<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;</SPAN>* &lt;p&gt;Company: 
                  &lt;/p&gt;<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;</SPAN>* @author 
                  Liuz<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;</SPAN>* @version 
                  1.0<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;</SPAN>*/<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US 
                  style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana">public 
                  class Constants {<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp; </SPAN>public static final 
                  String PROJECT_SINGLEFORM_KEY = 
                  "projectForm";<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp; </SPAN>public static final 
                  String PROJECT_LISTFORM_KEY = 
"PROJECTS";<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp; </SPAN>public static final 
                  String PROJECT_SEARCHFORM_KEY = 
                  "SEARCHPROJECTS";<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp; </SPAN>public static final 
                  String PROJECT_CONTROLLERFORM_KEY = 
                  "PROJECTCONTROLLER";<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp; </SPAN>public static final 
                  String SITE_LISTFORM_KEY = "SITES";<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp; </SPAN>public static final 
                  String SITE_SINGLEFORM_KEY = "SITE";<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US 
                  style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp; </SPAN>public static final 
                  String EXCEPTION_BEAN = "EXCEPTIONBEAN";<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;</SPAN><SPAN 
                  style="COLOR: green"><SPAN 
                  style="mso-spacerun: yes">&nbsp;</SPAN>/**<o:p></o:p></SPAN></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US 
                  style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>* </SPAN><FONT 
                  face=宋体><SPAN 
                  style="FONT-SIZE: 9pt; COLOR: green; mso-hansi-font-family: Verdana; mso-ascii-font-family: Verdana">通过识别异常的基础类型,返回易懂的提示信息</SPAN><SPAN 
                  lang=EN-US 
                  style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></FONT></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US 
                  style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>* @param ex 
                  Exception </SPAN><FONT face=宋体><SPAN 
                  style="FONT-SIZE: 9pt; COLOR: green; mso-hansi-font-family: Verdana; mso-ascii-font-family: Verdana">异常</SPAN><SPAN 
                  lang=EN-US 
                  style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></FONT></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US 
                  style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>* @return String 
                  </SPAN><FONT face=宋体><SPAN 
                  style="FONT-SIZE: 9pt; COLOR: green; mso-hansi-font-family: Verdana; mso-ascii-font-family: Verdana">异常的描述信息</SPAN><SPAN 
                  lang=EN-US 
                  style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></FONT></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US 
                  style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp; 
                  </SPAN>*/<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp; </SPAN>public static final 
                  String getExceptionMsg(Exception ex){<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  </SPAN>String returnMsg="";<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  </SPAN>if(ex!=null){<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  </SPAN>if (ex instanceof 
                  com.boss.module.operation.command.exception.AlreadyExistException){<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  </SPAN>returnMsg = "</SPAN><SPAN 
                  style="FONT-SIZE: 9pt; mso-hansi-font-family: Verdana; mso-ascii-font-family: Verdana"><FONT 
                  face=宋体>数据已存在</FONT></SPAN><SPAN lang=EN-US 
                  style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana">!";<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  </SPAN>return returnMsg;<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  </SPAN>}else if (ex instanceof 
                  com.boss.module.operation.command.exception.DbException){<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  </SPAN>returnMsg = "</SPAN><SPAN 
                  style="FONT-SIZE: 9pt; mso-hansi-font-family: Verdana; mso-ascii-font-family: Verdana"><FONT 
                  face=宋体>数据库错误</FONT></SPAN><SPAN lang=EN-US 
                  style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana">!";<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  </SPAN>return returnMsg;<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  </SPAN>}else if(ex instanceof 
                  com.boss.module.operation.command.exception.InvalidObjectException){<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  </SPAN>returnMsg = "</SPAN><SPAN 
                  style="FONT-SIZE: 9pt; mso-hansi-font-family: Verdana; mso-ascii-font-family: Verdana"><FONT 
                  face=宋体>无效的数据</FONT></SPAN><SPAN lang=EN-US 
                  style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana">!";<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  </SPAN>return returnMsg;<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  </SPAN>}else if(ex instanceof 
                  com.boss.module.operation.command.exception.InvalidPkException){<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  </SPAN>returnMsg = "</SPAN><SPAN 
                  style="FONT-SIZE: 9pt; mso-hansi-font-family: Verdana; mso-ascii-font-family: Verdana"><FONT 
                  face=宋体>无效的主键</FONT></SPAN><SPAN lang=EN-US 
                  style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana">!";<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  </SPAN><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>return 
                  returnMsg;<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
                  lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><SPAN 
                  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  </SPAN>}else if(ex instanceof 
                  com.boss.module.operation.command.exception.NotFoundException){<o:p></o:p></SPAN></P>
                  <P class=MsoNormal style="MARG

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -