锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美日韩在线视频一区二区,亚洲福利国产,日韩在线观看不卡http://www.aygfsteel.com/Areschina/category/4883.html灝忛笩涔熺柉鐙俕_^zh-cnTue, 27 Feb 2007 18:03:06 GMTTue, 27 Feb 2007 18:03:06 GMT60綆鍗曠殑struts搴旂敤寮鍙戯紙5錛?/title><link>http://www.aygfsteel.com/Areschina/articles/19953.html</link><dc:creator>Areschina</dc:creator><author>Areschina</author><pubDate>Tue, 15 Nov 2005 12:34:00 GMT</pubDate><guid>http://www.aygfsteel.com/Areschina/articles/19953.html</guid><wfw:comment>http://www.aygfsteel.com/Areschina/comments/19953.html</wfw:comment><comments>http://www.aygfsteel.com/Areschina/articles/19953.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/Areschina/comments/commentRss/19953.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/Areschina/services/trackbacks/19953.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">綆鍗曠殑</SPAN><SPAN lang=EN-US>struts</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">搴旂敤寮鍙戯紙</SPAN><SPAN lang=EN-US>5</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛?/SPAN><SPAN lang=EN-US><BR><BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">絎叚姝?/SPAN><SPAN lang=EN-US>:</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">寤虹珛</SPAN><SPAN lang=EN-US>JSP</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">瑙嗗浘欏甸潰</SPAN><SPAN lang=EN-US> (</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涓昏鏈変袱涓?/SPAN><SPAN lang=EN-US>jsp</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏂囦歡</SPAN><SPAN lang=EN-US>. </SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">娣誨姞欏甸潰</SPAN><SPAN lang=EN-US>. adduser.jsp </SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏌ョ湅欏甸潰</SPAN><SPAN lang=EN-US> viewuser.jsp) <BR><BR>adduser.jsp <BR><BR><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <BR><%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %> <BR><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <BR><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <BR><%@ page contentType="text/html; charset=gb2312" %> <BR><html:html> <BR><head> <BR><meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <BR><title> <BR>adduser <BR></title> <BR></head> <BR><body> <BR><h1> </h1> <BR><p> <BR><html:form action="/user1Action.do" method="POST"> <BR><html:hidden property="action"/> <BR><br> <BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">閮ㄩ棬</SPAN><SPAN lang=EN-US>: <BR><html:select property="dep"> <BR><html:options collection="dep" property="id" labelProperty="name1"/> <BR></html:select> <BR><br> <BR>ID: <BR><logic:equal name="userActionForm" property="action" scope="request" value="add"> <BR><html:text property="user_id"/> <BR></logic:equal> <BR><logic:equal name="userActionForm" property="action" scope="request" value="edit"> <BR><html:text property="user_id" readonly="true"/> <BR></logic:equal> <BR><br> <BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍚嶅瓧</SPAN><SPAN lang=EN-US>:<html:text property="user_name"/> <BR><br> <BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐢佃瘽</SPAN><SPAN lang=EN-US>:<html:text property="tel"/> <BR><br> <BR><html:submit property="submit" value="Submit"/><br> <BR><html:reset value ="Reset"/> <BR></html:form> <BR></body> <BR></html:html> <BR><BR>viewuser.jsp <BR><BR><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <BR><%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %> <BR><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <BR><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <BR><%@ page contentType="text/html; charset=GBK" %> <BR><html:html> <BR><head> <BR><title> <BR>viewuser <BR></title> <BR></head> <BR><body> <BR><div align="center"><a href="userAction.do?action=add">add </a></div> <BR><table width="60%" border="1" align="center"> <BR><tr bgcolor="#CCCCCC"> <BR><td>ID</td> <BR><td>user_name</td> <BR><td>dep</td> <BR><td>tel</td> <BR><td>modify</td> <BR><td>del</td> <BR></tr> <BR><logic:iterate name="rs" id="user" scope="request" type="java.util.HashMap"> <BR><tr> <BR><td><bean:write name="user" property="user_id"/> </td> <BR><td><bean:write name="user" property="user_name"/> </td> <BR><td><bean:write name="user" property="dep_name"/> </td> <BR><td><bean:write name="user" property="tel"/> </td> <BR><td><a href="userAction.do?action=edit&key=<bean:write name="user" property="user_id"/>">modify</a></td> <BR><td><a href="userAction.do?action=del&key=<bean:write name="user" property="user_id"/>">del</a></td> <BR></tr> <BR></logic:iterate> <BR></table> <BR></body> <BR></html:html> <BR><BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">寤轟駭涓涓漿鍚戦〉闈?/SPAN><SPAN lang=EN-US> (index.jsp) <BR><%@ page contentType="text/html; charset=gb2312" %> <BR><html> <BR><head> <BR><title>Untitled Document</title> <BR><meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <BR></head> <BR><BR><body> <BR><% response.sendRedirect("userAction.do?action=view"); %> <BR></body> <BR></html> <BR><BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">閫掍竷姝?/SPAN><SPAN lang=EN-US>:</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">寤虹珛</SPAN><SPAN lang=EN-US>struts</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">閰嶇疆鏂囦歡</SPAN><SPAN lang=EN-US> (WEB-INF/config-struts.xml) <BR><BR><?xml version="1.0" encoding="UTF-8"?> <BR><!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"> <BR><struts-config> <BR><form-beans> <BR><form-bean name="userActionForm" type="mystruts.userActionForm" /> <BR></form-beans> <BR><action-mappings> <BR><action type="mystruts.userAction" scope="request" path="/userAction"> <BR><forward name="view" path="/viewuser.jsp" /> <BR><forward name="add" path="/adduser.jsp" /> <BR><forward name="delview" path="/userAction.do?action=view" /> <BR></action> <BR><action name="userActionForm" type="mystruts.user1Action" scope="request" path="/user1Action"> <BR><forward name="view" path="/userAction.do?action=view" /> <BR></action> <BR></action-mappings> <BR></struts-config> <BR><BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">榪愯紼嬪簭</SPAN><SPAN lang=EN-US>: <BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍚姩</SPAN><SPAN lang=EN-US>tomcat <BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍚姩</SPAN><SPAN lang=EN-US>IE </SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍦ㄥ湴鍧鏍忎腑杈撳叆</SPAN><SPAN lang=EN-US> http://localhost:8080/mystruts <BR><BR>OK..... </SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛堝叏鏂囧畬錛?/SPAN></P><img src ="http://www.aygfsteel.com/Areschina/aggbug/19953.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/Areschina/" target="_blank">Areschina</a> 2005-11-15 20:34 <a href="http://www.aygfsteel.com/Areschina/articles/19953.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>綆鍗曠殑struts搴旂敤寮鍙戯紙1錛?/title><link>http://www.aygfsteel.com/Areschina/articles/19951.html</link><dc:creator>Areschina</dc:creator><author>Areschina</author><pubDate>Tue, 15 Nov 2005 12:33:00 GMT</pubDate><guid>http://www.aygfsteel.com/Areschina/articles/19951.html</guid><wfw:comment>http://www.aygfsteel.com/Areschina/comments/19951.html</wfw:comment><comments>http://www.aygfsteel.com/Areschina/articles/19951.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/Areschina/comments/commentRss/19951.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/Areschina/services/trackbacks/19951.html</trackback:ping><description><![CDATA[<SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 瀹嬩綋; mso-bidi-font-family: 瀹嬩綋; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">綆鍗曠殑<SPAN lang=EN-US>struts</SPAN>搴旂敤寮鍙戯紙<SPAN lang=EN-US>1</SPAN>錛?SPAN lang=EN-US><BR><BR></SPAN>緇堜簬鎶婅嚜宸辯殑榪欎釜嫻嬭瘯鍋氬畬浜?SPAN lang=EN-US>. </SPAN>甯屾湜瀵規兂瀛?SPAN lang=EN-US>struts</SPAN>鐨勬柊鎵嬫湁鎵甯姪<SPAN lang=EN-US>. <BR><BR>(mystruts</SPAN>搴旂敤<SPAN lang=EN-US>)</SPAN>鐩綍緇撴瀯<SPAN lang=EN-US> <BR>mystruts <BR>|-WEB-INF <BR>| |- lib <BR>| | |- struts.jar <BR>| |- classes <BR>| | |- ConnectionPool <BR>| | | |- getDbConnection.class <BR>| | |-mystruts <BR>| | |- user1Action.class <BR>| | |- userAction.class <BR>| | |- userActionForm.class <BR>| | |- userdao.class <BR>| |-struts-bean.tld <BR>| |-struts-config.xml <BR>| |-struts-html.tld <BR>| |-struts-logic.tld <BR>| |-struts-template.tld <BR>|-adduser.jsp <BR>|-index.jsp <BR>|-viewuser.jsp <BR><BR></SPAN>絎竴姝?SPAN lang=EN-US>: </SPAN>寮鍙戠幆澧冮厤緗?SPAN lang=EN-US> <BR><BR>(</SPAN>濡傛灉浣犺繕娌℃湁鐩稿叧杞歡<SPAN lang=EN-US>. </SPAN>璇峰埌<SPAN lang=EN-US>http://www.apache.org </SPAN>涓嬭澆<SPAN lang=EN-US>) <BR><BR>tomcat5.0 </SPAN>閰嶇疆<SPAN lang=EN-US> (</SPAN>寤虹珛涓涓?SPAN lang=EN-US> mystruts </SPAN>搴旂敤<SPAN lang=EN-US>, </SPAN>騫舵嫹璐濈浉鍏蟲枃浠?SPAN lang=EN-US>) <BR><BR></SPAN>璇峰湪浣犵殑<SPAN lang=EN-US>tomcat</SPAN>瀹夎鐩綍涓壘鍒?SPAN lang=EN-US>\conf\Catalina\localhost </SPAN>瀛愮洰褰?SPAN lang=EN-US>. </SPAN>鏂板緩<SPAN lang=EN-US> mystruts.xml </SPAN>鏂囦歡<SPAN lang=EN-US> <BR></SPAN>鏂囦歡鍐呭濡備笅<SPAN lang=EN-US>. </SPAN>鍦ㄨ繖涓枃浠朵腑<SPAN lang=EN-US>. </SPAN>鎴戜滑灝嗛厤緗竴涓仈鎺ユ睜<SPAN lang=EN-US>.</SPAN>璇鋒妸鐩稿叧鐨勯┍鍔?SPAN lang=EN-US>.</SPAN>鏁版嵁搴撶敤鎴?SPAN lang=EN-US>,</SPAN>瀵嗙爜鏀規垚浣犺嚜宸辯殑鏈満閰嶇疆<SPAN lang=EN-US>. <BR></SPAN>騫舵妸<SPAN lang=EN-US>JDBC</SPAN>椹卞姩鎷瘋礉涓浠藉埌<SPAN lang=EN-US> Tomcat 5.0\common\lib </SPAN>鐩綍涓?SPAN lang=EN-US>. </SPAN>璇鋒妸<SPAN lang=EN-US> struts.jar \mystruts\WEB-INF\lib </SPAN>鐩綍涓?SPAN lang=EN-US>. <BR><BR><Context path="/mystruts" docBase="D:\www\mystruts\mystruts\mystruts" debug="0" privileged="true"> <BR><BR><Resource name="jdbc/TestDB" <BR>auth="Container" <BR>type="javax.sql.DataSource"/> <BR><BR><ResourceParams name="jdbc/TestDB"> <BR><parameter> <BR><name>factory</name> <BR><value>org.apache.commons.dbcp.BasicDataSourceFactory</value> <BR></parameter> <BR><BR><parameter> <BR><name>maxActive</name> <BR><value>10</value> <BR></parameter> <BR><BR><parameter> <BR><name>maxIdle</name> <BR><value>5</value> <BR></parameter> <BR><BR><parameter> <BR><name>maxWait</name> <BR><value>10000</value> <BR></parameter> <BR><BR><parameter> <BR><name>username</name> <BR><value>sa</value> <BR></parameter> <BR><parameter> <BR><name>password</name> <BR><value>test</value> <BR></parameter> <BR><BR><parameter> <BR><name>driverClassName</name> <BR><value>net.sourceforge.jtds.jdbc.Driver</value> <BR></parameter> <BR><BR><parameter> <BR><name>url</name> <BR><value>jdbc:jtds:sqlserver://192.168.10.223:1433/mystruts</value> <BR></parameter> <BR></ResourceParams> <BR></Context> <BR><BR>WEB-INF/web.xml (</SPAN>鍔犲叆<SPAN lang=EN-US>struts</SPAN>鏍囪搴撶殑鏀寔<SPAN lang=EN-US>) <BR><BR><?xml version="1.0" encoding="UTF-8"?> <BR><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <BR><web-app> <BR><servlet> <BR><servlet-name>action</servlet-name> <BR><servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <BR><init-param> <BR><param-name>debug</param-name> <BR><param-value>2</param-value> <BR></init-param> <BR><init-param> <BR><param-name>config</param-name> <BR><param-value>/WEB-INF/struts-config.xml</param-value> <BR></init-param> <BR><load-on-startup>2</load-on-startup> <BR></servlet> <BR><servlet-mapping> <BR><servlet-name>action</servlet-name> <BR><url-pattern>*.do</url-pattern> <BR></servlet-mapping> <BR><taglib> <BR><taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri> <BR><taglib-location>/WEB-INF/struts-bean.tld</taglib-location> <BR></taglib> <BR><taglib> <BR><taglib-uri>/WEB-INF/struts-html.tld</taglib-uri> <BR><taglib-location>/WEB-INF/struts-html.tld</taglib-location> <BR></taglib> <BR><taglib> <BR><taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri> <BR><taglib-location>/WEB-INF/struts-logic.tld</taglib-location> <BR></taglib> <BR><taglib> <BR><taglib-uri>/WEB-INF/struts-template.tld</taglib-uri> <BR><taglib-location>/WEB-INF/struts-template.tld</taglib-location> <BR></taglib> <BR></web-app></SPAN>錛堟湭瀹屽緟緇級</SPAN><img src ="http://www.aygfsteel.com/Areschina/aggbug/19951.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/Areschina/" target="_blank">Areschina</a> 2005-11-15 20:33 <a href="http://www.aygfsteel.com/Areschina/articles/19951.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>綆鍗曠殑struts搴旂敤寮鍙戯紙2錛?/title><link>http://www.aygfsteel.com/Areschina/articles/19949.html</link><dc:creator>Areschina</dc:creator><author>Areschina</author><pubDate>Tue, 15 Nov 2005 12:32:00 GMT</pubDate><guid>http://www.aygfsteel.com/Areschina/articles/19949.html</guid><wfw:comment>http://www.aygfsteel.com/Areschina/comments/19949.html</wfw:comment><comments>http://www.aygfsteel.com/Areschina/articles/19949.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/Areschina/comments/commentRss/19949.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/Areschina/services/trackbacks/19949.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">綆鍗曠殑</SPAN><SPAN lang=EN-US>struts</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">搴旂敤寮鍙戯紙</SPAN><SPAN lang=EN-US>2</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛?/SPAN><SPAN lang=EN-US><BR><BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">絎簩姝?/SPAN><SPAN lang=EN-US>: </SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">閰嶇疆鏁版嵁搴?/SPAN><SPAN lang=EN-US> <BR><BR>1.</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">棣栧厛鍒涘緩鏁版嵁鑱旀帴</SPAN><SPAN lang=EN-US>bean, </SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">騫舵墦鍖呭埌</SPAN><SPAN lang=EN-US> ConnectionPool, </SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">瀹冨皢浠庢垜浠厤緗殑鑱旀帴姹犱腑鍙栧緱鍙敤鑱旀帴</SPAN><SPAN lang=EN-US>. <BR><BR>// Java Document <BR>package ConnectionPool; <BR>import javax.naming.*; <BR>import javax.sql.*; <BR>import java.sql.*; <BR>import java.io.*; <BR>import java.util.*; <BR><BR>public class getDbConnection { <BR><BR>Connection conn; <BR>Statement stmt; <BR>ResultSet rs=null; <BR><BR>String foo = "Not Connected"; <BR>int bar = -1; <BR><BR>public getDbConnection() { <BR>try{ <BR>Context ctx = new InitialContext(); <BR>if(ctx == null ) <BR>throw new Exception("Boom - No Context"); <BR><BR>DataSource ds = <BR>(DataSource)ctx.lookup( <BR>"java:comp/env/jdbc/TestDB"); <BR><BR>if (ds != null) { <BR>conn = ds.getConnection(); <BR><BR>} <BR>} <BR>catch(Exception e) { <BR>e.printStackTrace(); <BR>} <BR>} <BR><BR>public Connection getCon() <BR>{ <BR>return conn; <BR>} <BR><BR><BR>public void d_close() throws SQLException <BR>{ <BR>if (rs != null) { <BR>try { rs.close(); } catch (SQLException e) { ; } <BR>rs = null; <BR>} <BR>if (stmt != null) { <BR>try { stmt.close(); } catch (SQLException e) { ; } <BR>stmt = null; <BR>} <BR>if (conn != null) { <BR>try { conn.close(); } catch (SQLException e) { ; } <BR>conn = null; <BR>} <BR><BR>} <BR><BR>protected void finalize() throws Throwable <BR>{ <BR>try { d_close(); } catch (SQLException e) { ; } <BR>} <BR><BR>} <BR><BR>2.</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍒涘緩鏁版嵁搴?/SPAN><SPAN lang=EN-US>. <BR><BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏁版嵁搴撳悕</SPAN><SPAN lang=EN-US>: mystruts <BR><BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">閮ㄩ棬琛?/SPAN><SPAN lang=EN-US>: mydep <BR><BR>_______________________________________ <BR>dep_id dep_name <BR>_______________________________________ <BR>1 dep1 <BR>2 dep2 <BR>3 dep3 <BR>4 dep4 <BR>_______________________________________ <BR><BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐢ㄦ埛琛?/SPAN><SPAN lang=EN-US>: myuser <BR>______________________________________________ <BR>user_id user_name dep tel <BR>______________________________________________ <BR>1 jack 1 0769-2454042 <BR>2 max 2 0769-2454043 <BR>______________________________________________ <BR><BR>(</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">娉?/SPAN><SPAN lang=EN-US>: </SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">浠ヤ笂瀛楁涓轟簡嫻嬭瘯鏂逛究</SPAN><SPAN lang=EN-US>. </SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍏ㄩ儴浣跨敤瀛楃鍨?/SPAN><SPAN lang=EN-US>) <BR><BR><BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">絎笁姝?/SPAN><SPAN lang=EN-US>: </SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍒涘緩</SPAN><SPAN lang=EN-US>ActionForm (userActionForm.java) <BR><BR>package mystruts; //</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">璇鋒墦鍖呭埌</SPAN><SPAN lang=EN-US>mystruts</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涓?/SPAN><SPAN lang=EN-US>. <BR><BR>import org.apache.struts.action.*; <BR>import javax.servlet.http.*; <BR><BR>public class userActionForm extends ActionForm { <BR>private String action="add"; <BR>private String dep; <BR>private String tel; <BR>private String user_id; <BR>private String user_name; <BR>public String getAction() { <BR>return action; <BR>} <BR>public void setAction(String action) { <BR>this.action = action; <BR>} <BR>public String getDep() { <BR>return dep; <BR>} <BR>public void setDep(String dep) { <BR>this.dep = dep; <BR>} <BR>public String getTel() { <BR>return tel; <BR>} <BR>public void setTel(String tel) { <BR>this.tel = tel; <BR>} <BR>public String getUser_id() { <BR>return user_id; <BR>} <BR>public void setUser_id(String user_id) { <BR>this.user_id = user_id; <BR>} <BR>public String getUser_name() { <BR>return user_name; <BR>} <BR>public void setUser_name(String user_name) { <BR>this.user_name = user_name; <BR>} <BR>public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { <BR><BR>return null; <BR>} <BR>public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { <BR>} <BR>} </SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛堟湭瀹屽緟緇級</SPAN></P><img src ="http://www.aygfsteel.com/Areschina/aggbug/19949.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/Areschina/" target="_blank">Areschina</a> 2005-11-15 20:32 <a href="http://www.aygfsteel.com/Areschina/articles/19949.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>綆鍗曠殑struts搴旂敤寮鍙戯紙3錛?/title><link>http://www.aygfsteel.com/Areschina/articles/19948.html</link><dc:creator>Areschina</dc:creator><author>Areschina</author><pubDate>Tue, 15 Nov 2005 12:31:00 GMT</pubDate><guid>http://www.aygfsteel.com/Areschina/articles/19948.html</guid><wfw:comment>http://www.aygfsteel.com/Areschina/comments/19948.html</wfw:comment><comments>http://www.aygfsteel.com/Areschina/articles/19948.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/Areschina/comments/commentRss/19948.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/Areschina/services/trackbacks/19948.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">綆鍗曠殑</SPAN><SPAN lang=EN-US>struts</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">搴旂敤寮鍙戯紙</SPAN><SPAN lang=EN-US>3</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛?/SPAN><SPAN lang=EN-US><BR></SPAN><BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">絎洓姝?/SPAN><SPAN lang=EN-US>:</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">寤虹珛鏁版嵁搴撴搷浣滃璞?/SPAN><SPAN lang=EN-US> (</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">瀹屾垚瀵硅〃鐨勫鍒犱慨鏀逛笌鏌ヨ</SPAN><SPAN lang=EN-US>) <BR><BR>package mystruts; <BR><BR>import java.sql.*; <BR>import ConnectionPool.*; <BR>import java.util.*; <BR><BR>public class userdao { <BR>getDbConnection db=null; <BR>Connection con=null; <BR><BR>public userdao() { <BR>} <BR>//------------------------------------------------------------------- <BR>public void userInsert(userActionForm uaf1) <BR>{ <BR>db=new getDbConnection(); <BR>con=db.getCon(); <BR>userActionForm uaf=uaf1; <BR>PreparedStatement ps = null; <BR>String sql="insert into myuser (user_id,user_name,dep,tel) values(?,?,?,?)"; <BR>try { <BR><BR>ps = con.prepareStatement(sql); <BR>ps.setString(1,uaf.getUser_id()); <BR>ps.setString(2,uaf.getUser_name()); <BR>ps.setString(3,uaf.getDep()); <BR>ps.setString(4,uaf.getTel()); <BR>ps.executeUpdate(); <BR>} <BR>catch (SQLException e) <BR>{ <BR>System.out.println("sql error"); <BR>} <BR>finally <BR>{ <BR>try{ <BR>con.close(); <BR>db.d_close(); <BR>} <BR>catch(Exception e) {} <BR>} <BR>} <BR>//--------------------------------------------- <BR>public void userUpdate(userActionForm uaf1) <BR>{ <BR>db=new getDbConnection(); <BR>con=db.getCon(); <BR>userActionForm uaf=uaf1; <BR>PreparedStatement ps = null; <BR>String sql="update myuser set user_name=?,dep=?,tel=? where user_id=?"; <BR>try { <BR><BR>ps = con.prepareStatement(sql); <BR>ps.setString(1,uaf.getUser_name()); <BR>ps.setString(2,uaf.getDep()); <BR>ps.setString(3,uaf.getTel()); <BR>ps.setString(4,uaf.getUser_id()); <BR>ps.executeUpdate(); <BR>} <BR>catch (SQLException e) <BR>{ <BR>System.out.println("sql error"); <BR>} <BR>finally <BR>{ <BR>try{ <BR>con.close(); <BR>db.d_close(); <BR>} <BR>catch(Exception e) {} <BR>} <BR>} <BR>//--------------------------------------------- <BR>public userActionForm getUser(String key) <BR>{ <BR>db=new getDbConnection(); <BR>con=db.getCon(); <BR>ResultSet rs=null; <BR>userActionForm uaf=new userActionForm(); <BR>PreparedStatement ps = null; <BR>String sql="select * from myuser where user_id=?"; <BR>try { <BR>ps = con.prepareStatement(sql); <BR>ps.setString(1,key.trim()); <BR>rs=ps.executeQuery(); <BR>if(rs.next()) <BR>{ <BR>uaf.setUser_id(rs.getString("user_id")); <BR>uaf.setUser_name(rs.getString("user_name")); <BR>uaf.setDep(rs.getString("dep")); <BR>uaf.setTel(rs.getString("tel")); <BR>uaf.setAction("edit"); <BR>} <BR>} <BR>catch (SQLException e) <BR>{ <BR>System.out.println("sql error"); <BR>} <BR>finally <BR>{ <BR>try{ <BR>con.close(); <BR>db.d_close(); <BR>} <BR>catch(Exception e) {} <BR>} <BR>System.out.println("mod"+key); <BR>return uaf; <BR>} <BR>//---------------------------------------- <BR>public void delUser(String key) <BR>{ <BR>db=new getDbConnection(); <BR>con=db.getCon(); <BR>PreparedStatement ps = null; <BR>String sql="delete from myuser where user_id=?"; <BR>try { <BR>ps = con.prepareStatement(sql); <BR>ps.setString(1,key.trim()); <BR>ps.executeUpdate(); <BR>} <BR>catch (SQLException e) <BR>{ <BR>System.out.println("sql error"); <BR>} <BR>finally <BR>{ <BR>try{ <BR>con.close(); <BR>db.d_close(); <BR>} <BR>catch(Exception e) {} <BR>} <BR>System.out.println("del"+key); <BR>} <BR>//---------------------------------- <BR>public Collection getAlluser() <BR>{ <BR>db=new getDbConnection(); <BR>con=db.getCon(); <BR>ResultSet rs=null; <BR>userActionForm uaf=new userActionForm(); <BR>PreparedStatement ps = null; <BR><BR>ArrayList rslist = new ArrayList(); <BR><BR>String sql="select * from myuser u,mydep d where u.dep=d.dep_id"; <BR>try { <BR>ps = con.prepareStatement(sql); <BR>rs=ps.executeQuery(); <BR>while(rs.next()) <BR>{ <BR>HashMap rscol = new HashMap(); <BR>rscol.put("user_id",rs.getString("user_id")); <BR>rscol.put("user_name",rs.getString("user_name")); <BR>rscol.put("dep",rs.getString("dep")); <BR>rscol.put("dep_name",rs.getString("dep_name")); <BR>rscol.put("tel",rs.getString("tel")); <BR>rslist.add(rscol); <BR>} <BR>} <BR>catch (SQLException e) <BR>{ <BR>System.out.println("sql error"); <BR>} <BR>finally <BR>{ <BR>try{ <BR>con.close(); <BR>db.d_close(); <BR>} <BR>catch(Exception e) {} <BR>} <BR>return rslist; <BR>} <BR>//---------------------------------- <BR>} </SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛堟湭瀹屽緟緇級</SPAN></P><img src ="http://www.aygfsteel.com/Areschina/aggbug/19948.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/Areschina/" target="_blank">Areschina</a> 2005-11-15 20:31 <a href="http://www.aygfsteel.com/Areschina/articles/19948.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>綆鍗曠殑struts搴旂敤寮鍙戯紙4錛?/title><link>http://www.aygfsteel.com/Areschina/articles/19947.html</link><dc:creator>Areschina</dc:creator><author>Areschina</author><pubDate>Tue, 15 Nov 2005 12:30:00 GMT</pubDate><guid>http://www.aygfsteel.com/Areschina/articles/19947.html</guid><wfw:comment>http://www.aygfsteel.com/Areschina/comments/19947.html</wfw:comment><comments>http://www.aygfsteel.com/Areschina/articles/19947.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/Areschina/comments/commentRss/19947.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/Areschina/services/trackbacks/19947.html</trackback:ping><description><![CDATA[<SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">綆鍗曠殑</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">struts</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">搴旂敤寮鍙戯紙</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">4</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛?/SPAN><SPAN lang=EN-US><BR><BR></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">絎簲姝?/SPAN><SPAN lang=EN-US><FONT face="Times New Roman">:</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">寤虹珛</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">Action (userAction.java) <BR><BR></FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">榪欓噷鎴戜滑灝嗗緩浜т袱涓?/SPAN><SPAN lang=EN-US><FONT face="Times New Roman">Action . <BR><BR>userAction.java </FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">灝嗗畬鎴愪互涓嬪伐浣?/SPAN><SPAN lang=EN-US><FONT face="Times New Roman">. <BR>1.</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">娣誨姞</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">(</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍓嶆湡鏁版嵁鍑嗗</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">. </FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涓繪槸鎻愬彇閮ㄩ棬璧勬枡</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">.</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">騫朵紶閫掔粰</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">adduser.jsp) <BR>2.</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">淇敼</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">(</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍓嶆湡鏁版嵁鍑嗗</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">) <BR>3.</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍒犻櫎</SPAN><SPAN lang=EN-US><FONT face="Times New Roman"> <BR>4.</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏌ョ湅鎵鏈夌敤鎴瘋祫鏂?/SPAN><SPAN lang=EN-US><FONT face="Times New Roman">. <BR><BR>user1Action.java </FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">灝嗗畬鎴愪互涓嬪伐浣?/SPAN><SPAN lang=EN-US><FONT face="Times New Roman"> <BR>1.</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">娣誨姞鐢ㄦ埛</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">(</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">瀵?/SPAN><SPAN lang=EN-US><FONT face="Times New Roman">myuser</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">琛ㄦ搷浣?/SPAN><SPAN lang=EN-US><FONT face="Times New Roman">) <BR>2.</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">淇敼鐢ㄦ埛</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">(</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">瀵?/SPAN><SPAN lang=EN-US><FONT face="Times New Roman">myuser</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">琛ㄦ搷浣?/SPAN><SPAN lang=EN-US><FONT face="Times New Roman">) <BR><BR>package mystruts; <BR><BR>import org.apache.struts.action.*; <BR>import javax.servlet.http.*; <BR>import mystruts.*; <BR>import java.util.*; <BR>import java.sql.*; <BR>import ConnectionPool.*; <BR><BR>public class userAction extends Action { <BR>public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception <BR>{ <BR>userdao dao=new userdao(); <BR>HttpServletRequest request=httpServletRequest; <BR>String action; <BR>if(request.getParameter("action").equals("") || request.getParameter("action")==null) <BR>{ <BR>action="add"; <BR>} <BR>else <BR>{ <BR>action=request.getParameter("action"); <BR>} <BR>if(action.equals("add")) <BR>{ <BR>request.setAttribute("dep",this.getDep()); <BR>return (actionMapping.findForward("add")); <BR>} <BR>if(action.equals("edit")) <BR>{ <BR>String key=request.getParameter("key"); <BR>request.setAttribute("dep",this.getDep()); <BR>request.setAttribute("userActionForm",dao.getUser(key)); <BR>return (actionMapping.findForward("add")); <BR>} <BR>if(action.equals("del")) <BR>{ <BR>String key=request.getParameter("key"); <BR>dao.delUser(key); <BR>return (actionMapping.findForward("delview")); <BR>} <BR>if(action.equals("view")) <BR>{ <BR>request.setAttribute("rs",dao.getAlluser()); <BR>return (actionMapping.findForward("view")); <BR>} <BR><BR>return null; <BR>} <BR>//--------------------------------------------- <BR>public Collection getDep() <BR>{ <BR>getDbConnection db=new getDbConnection(); <BR>Connection con=db.getCon(); <BR>ResultSet rs=null; <BR><BR>PreparedStatement ps = null; <BR><BR>ArrayList rslist = new ArrayList(); <BR><BR>String sql="select * from mydep"; <BR>try { <BR>ps = con.prepareStatement(sql); <BR>rs=ps.executeQuery(); <BR>while(rs.next()) <BR>{ <BR>HashMap rscol = new HashMap(); <BR>rscol.put("id",rs.getString("dep_id")); <BR>rscol.put("name1",rs.getString("dep_name")); <BR>rslist.add(rscol); <BR>} <BR>} <BR>catch (SQLException e) <BR>{ <BR>System.out.println("sql error"); <BR>} <BR>finally <BR>{ <BR>try{ <BR>con.close(); <BR>db.d_close(); <BR>} <BR>catch(Exception e) {} <BR>} <BR>return rslist; <BR>} <BR>} <BR><BR><BR><BR>package mystruts; <BR><BR>import org.apache.struts.action.*; <BR>import javax.servlet.http.*; <BR><BR>public class user1Action extends Action { <BR>public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception <BR>{ <BR>userActionForm uaf = (userActionForm) actionForm; <BR>if(uaf.getAction().equals("add")) <BR>{ <BR>new userdao().userInsert(uaf); <BR>return (actionMapping.findForward("view")); <BR>} <BR>if(uaf.getAction().equals("edit")) <BR>{ <BR>new userdao().userUpdate(uaf); <BR>return (actionMapping.findForward("view")); <BR>} <BR>return null; <BR>} <BR>}</FONT></SPAN></P></SPAN><img src ="http://www.aygfsteel.com/Areschina/aggbug/19947.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/Areschina/" target="_blank">Areschina</a> 2005-11-15 20:30 <a href="http://www.aygfsteel.com/Areschina/articles/19947.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">东安县</a>| <a href="http://" target="_blank">库车县</a>| <a href="http://" target="_blank">浏阳市</a>| <a href="http://" target="_blank">西乡县</a>| <a href="http://" target="_blank">汝城县</a>| <a href="http://" target="_blank">石泉县</a>| <a href="http://" target="_blank">新河县</a>| <a href="http://" target="_blank">微博</a>| <a href="http://" target="_blank">泰来县</a>| <a href="http://" target="_blank">当涂县</a>| <a href="http://" target="_blank">泰宁县</a>| <a href="http://" target="_blank">东城区</a>| <a href="http://" target="_blank">奇台县</a>| <a href="http://" target="_blank">色达县</a>| <a href="http://" target="_blank">建始县</a>| <a href="http://" target="_blank">安国市</a>| <a href="http://" target="_blank">巴南区</a>| <a href="http://" target="_blank">正定县</a>| <a href="http://" target="_blank">高州市</a>| <a href="http://" target="_blank">正镶白旗</a>| <a href="http://" target="_blank">福海县</a>| <a href="http://" target="_blank">泉州市</a>| <a href="http://" target="_blank">牟定县</a>| <a href="http://" target="_blank">柳林县</a>| <a href="http://" target="_blank">北碚区</a>| <a href="http://" target="_blank">永善县</a>| <a href="http://" target="_blank">读书</a>| <a href="http://" target="_blank">武川县</a>| <a href="http://" target="_blank">昆山市</a>| <a href="http://" target="_blank">徐汇区</a>| <a href="http://" target="_blank">云霄县</a>| <a href="http://" target="_blank">佛山市</a>| <a href="http://" target="_blank">海晏县</a>| <a href="http://" target="_blank">洛隆县</a>| <a href="http://" target="_blank">黄平县</a>| <a href="http://" target="_blank">金乡县</a>| <a href="http://" target="_blank">芒康县</a>| <a href="http://" target="_blank">沅江市</a>| <a href="http://" target="_blank">余干县</a>| <a href="http://" target="_blank">婺源县</a>| <a href="http://" target="_blank">宁晋县</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>