扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
<beans> u^o;9V,x
u ]#x,
<!-- 配置数据库连接池开始--> XR~=teS)
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> RR;`MpF
<property name="driverClassName"> /cu]MW
<value>com.mysql.jdbc.Driver</value> (V :4,D-
</property> $+dc?zT{<
<property name="url"> AY-W sLq
<value>jdbc:mysql://localhost:3306/blog?useUnicode=true&characterEncoding=UTF-8</value> k#boq
</property> h<k/sVrl9
<property name="username"> ~*b@WHNZ
<value>root</value> %q|Wf~{7
</property> 6;_JVGKY
<property name="password"> 4\)lBkjc#
<value>123456</value> T.w,
</property> DzT<e'S
</bean> yH:0hoI
<!-- 配置数据库连接池结束--> 0<9&`n
2z9{y/2Z
<!-- hibernate配置开始 --> hKONVrV
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> w$m*#8NAj
<property name="dataSource" ref="dataSource" /> i@!kc|~u
<property name="hibernateProperties"> ptjl-8+)
<props> b {+`
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop> 7I8x3v
<prop key="hibernate.show_sql">false</prop> <X>Lw)!
</props> 6lrkn}ek
</property> ] C0:SiK
<property name="mappingDirectoryLocations"> K[Vx_.%u`3
i3I12a=
<list> C .KS+zm
<value>classpath:/com/wzw/hibernate/hbm</value> F/;<9~7(
</list> T"F2G $
</property> 8=W/"bg9.
</bean> \KXgK)o
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> wTrc9&p.1
<property name="sessionFactory" ref="sessionFactory" /> 6V&T
</bean> 7>&CXb*wE
Cohh]?" 2
<bean id="jdbcExceptionTranslator" class="org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator"> =;KPX/USU
<property name="dataSource" ref="dataSource" /> ?~($Ekf=
</bean> w]*Nn^
[~Qh#it9,'
<bean id="openSessionInViewInterceptor" _nO.(zh
class="org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor"> H%VD2uT
<property name="sessionFactory" ref="sessionFactory"/> V?r.-?!V
</bean> JtOxOPAG\
<bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate"> `fvQ^;tu
<property name="sessionFactory" ref="sessionFactory" /> ;km_e(R
<property name="jdbcExceptionTranslator" ref="jdbcExceptionTranslator" /> Wr_.Di#_&"
</bean> )S-"*x
N[MD#X*g
<bean id="hibernateUtils" class="com.wzw.hibernate.core.HibernateUtils"> i_#/UGV*
<property name="hibernateTemplate" ref="hibernateTemplate" /> %'\?2Yg3
</bean> r x`ELF
|:"wjdn
<!-- hibernate配置结束 --> }NNi3(Yz>
gXkgg ;m
</beans> t.2[% 8]
D6S a~#
NU5cC$-jh
spring中struts的部分配置: ;]~uYr>
g2o?>V
<?xml version="1.0" encoding="UTF-8"?> ,;oLMY4
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "[url]http://www.springframework.org/dtd/spring-beans.dtd"[/url]> /+B J3j'
v)ZU h+
<beans> F(,TL~i
5kG.;@9_IM
<!-- struts配置开始 --> r29 CfU
ZA!LA^:
<bean name="/user/useraccountaction" class="com.wzw.struts.action.UserAccountAction" singleton="false"> A dfBV
<property name="userAccountDao"> P,)RZ| WQ
<ref bean="userAccountDao" /> lavg b'
</property> rX #AhIg
</bean> a9lq{JA
Q-})
<bean name="/article/articleaction" class="com.wzw.struts.action.ArticleAction" singleton="false"> 1f\_=:
<property name="articleDao"> uN.\6g5Z<^
<ref bean="articleDao" /> [ D <+Q
</property> nNAn)HY.h
<property name="articleTagDao"> HQ .}(
<ref bean="articleTagDao" /> u=<q)V"M;
</property> 7I1tz 6K
<property name="articleTypeDao"> V30qE
<ref bean="articleTypeDao" /> /wZ'k
</property> B,3;fw`Y
<property name="userAccountDao"> n"Ttez6
<ref bean="userAccountDao" /> ;(%w
</property> z5:" L(3a\
<property name="commentDao"> ro )zI
<ref bean="commentDao" /> rGQk :2h
</property> ag@#DzB
</bean> x>P61e`
)b:7E|
<bean name="/article/articleTagaction" class="com.wzw.struts.action.ArticleTagAction" singleton="false"> !E`Dn>}
<property name="articleTagDao"> t7 L2Oq
<ref bean="articleTagDao" /> Ld_xnzOR.y
</property> d-we 9V]<
</bean> 5iQFdx
/9gX@e^CA
<bean name="/article/articleTypeaction" class="com.wzw.struts.action.ArticleTypeAction" singleton="false"> e:B+`wzM
<property name="articleTypeDao"> o7d}Zf
<ref bean="articleTypeDao" /> {_V)og\
</property> ${&32=2Lj
<property name="userAccountDao"> W@ c2l+j
<ref bean="userAccountDao" /> RM.H)
</property> {\ yGiN
</bean> )D 9}It=
e0jti]+n`
<bean name="/index" class="com.wzw.struts.action.IndexAction" singleton="false"> #)z|3hy
<property name="userAccountDao"> LhuS! P-
<ref bean="userAccountDao" /> j> iK5'iq
</property> X,bf92L
<property name="articleDao"> l y_bg!Fg
<ref bean="articleDao" /> KPfdU!gIA
</property> h9_I gRAN
<property name="articleTagDao"> 1-'tjFl
<ref bean="articleTagDao" /> 6_^Gb @pt
</property> jm00&w+$=
<property name="articleTypeDao"> 1{A8&R2
<ref bean="articleTypeDao" /> lW},wK
</property> y"C ol~G<
<property name="messageDao"> qOI+Ro
<ref bean="messageDao" /> }%q=0"
</property> b*A114
<property name="commentDao"> 4Yp0 Pej*
<ref bean="commentDao" /> Lh8qKU
</property> <cy/EC-]1K
</bean> pNK=Oh1
4B"8%J<
<bean name="/iframeAction" class="com.wzw.struts.action.IframeAction" singleton="false"> r]NH
<property name="userAccountDao"> M;ob}Lov;
<ref bean="userAccountDao" /> }u k$W$i
</property> YN$A+
<property name="articleDao"> V)X9);ce
<ref bean="articleDao" /> .Ik4mRPt
</property> t:PcDN^
<property name="messageDao"> s]L[$
<ref bean="messageDao" /> T{ :93A
</property> d ,r {
<property name="photoAlbumDao"> vYs*b6[=
<ref bean="photoAlbumDao" /> lA \|i;
</property> 7e-{{:x
<property name="photoDao"> 6'@[BR
<ref bean="photoDao" /> `OQ(8
</property> t$= nSZ
</bean> l5.=_7%
i_ 'XuAl
D DcPbai
...... {M z+ZJ
...... nE>[usNe
...... !=u"W|0J
<!-- struts配置结束 --> q@}nA5|C
j:$9VYh5
</beans> Kh+.]
zb7YX
]I{%Y`_{fV
spring中部分事务配置: @?/|dhmc
f~}'0DC
<beans> 1> &>d<5
<!-- hibernate配置开始 --> Y%=P9CB#
\h5&B OMS
<import resource="spring_hibernate.xml" /> 6yQ7^F8
#xEANN/Q
<!-- hibernate配置结束 --> NK=*/1,X
N2e5^PR
T:i4<
<!-- bean配置开始 --> faA'M
<e*<[10
<import resource="spring_beans.xml" /> AW \-ba
~IFfh~Y@
<!-- bean配置结束 --> r>$<u6,{|
bLzk`(+j
NkXn j@E
<!-- 事务配置开始 --> hw`@TpiLk
<bean id="baseService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> @M IX>
<property name="transactionManager" ref="transactionManager" /> [i@e[,A
<property name="target"> V* J>8s
<list> hI92}c+G
<ref bean="userAccountDao" /> 1Gm6%y~
<ref bean="articleDao" /> ^EuO$k6@]
<ref bean="articleTagDao" /> _SA=RW/
<ref bean="articleTypeDao" /> ime4m@*
<ref bean="commentDao" /> upPWGU#L[
<ref bean="messageDao" /> *TWD)x
<ref bean="domainDao" /> FRiY] @L
<ref bean="photoAlbumDao" /> {{-;9GU}%
<ref bean="photoDao" /> lx8VD(Q,
<ref bean="friendurlDao" /> A'B Gg64
<ref bean="headImgDao" /> '\.TFdm[N:
<ref bean="glassDao" /> $%0Scj U
<ref bean="sheyDao" /> EE@O`q
<ref bean="noteDao" /> As9kf[]
<ref bean="rightDao" /> pvP(F+
<ref bean="dispathDao" /> K6O|SY`
<ref bean="backDao" /> 1*ahnC[i
<ref bean="frontDao" /> _xT >
<ref bean="memberDao" /> 'Htj2}
<ref bean="categoryDao" /> /&'8)RU36
<ref bean="searchDao" /> _G`f?X_[t
re;_qh1
</list> _oxHgy Z
</property> j<49h]'J
<property name="proxyTargetClass"> K\; %4'
<value>true</value> "(>.,<.\
</property> _%iWwsuOb
<property name="transactionAttributes"> h$2v;b\4
<props> Ou_+ {d#
<prop key="get*">PROPAGATION_REQUIRED,readOnly,-Exception</prop> C(eapE 5y
<prop key="find*">PROPAGATION_REQUIRED,readOnly,-Exception</prop> |/]X":r[
<prop key="add*">PROPAGATION_REQUIRED,-Exception</prop> (Fw=zb.
<prop key="save*">PROPAGATION_REQUIRED,-Exception</prop> E bm2~%}A
<prop key="insert*">PROPAGATION_REQUIRED,-Exception</prop> Bt?bA
<prop key="update*">PROPAGATION_REQUIRED,-Exception</prop> T23~N
<prop key="remove*">PROPAGATION_REQUIRED,-Exception</prop> m2X([_ P
<prop key="*">readOnly,-Exception</prop> 5QmGt{{
</props> \iQt 6i
</property> }=sDV<"S
Moi~eG`\
...... M7DOP:Aw
...... Cr4%*#
...... %/]V,9v6
<!-- 事务配置结束 --> Hx,];eh U
[?s#Rd:]
</beans> XGM:Ufs
4NK*&Op)
9?LL 1i6t
struts我主要分为四个文件存放,分别存放actionmapping,fornbean,globarforward和validator,下面是struts部分主要配置: ipAyndc
%tW-iPfR
<action-mappings> "ULfM`l?
<!-- <action path="/index" forward="/WEB-INF/jsp/front/index.jsp" /> --> )QlH'xr%
<!-- <action path="/add_article" forward="/WEB-INF/jsp/front/article/add_article.jsp" /> --> iTeB!Kg
<action path="/regedit" forward="/WEB-INF/jsp/front/user/regedit.jsp" /> xXgibz[U
<action path="/login" forward="/WEB-INF/jsp/front/login.jsp" /> *d$t^;+!c
<action path="/photoAlbum" forward="/WEB-INF/jsp/front/photo/addPhotoAlbum.jsp" /> 5Ik4kX1
<action path="/addphoto" forward="/WEB-INF/jsp/front/photo/addphoto.jsp" /> 9D ;d'Tau
<action path="/manage" forward="/WEB-INF/jsp/front/manage/manage.jsp" /> Zh&[N3
<action path="/fck" forward="/fck/index.jsp" /> &V$<![U
<action path="/backend" forward="/WEB-INF/jsp/backend/index.jsp" /> [3?JyE}!t
UnR-coS
<action path="/index" type="org.springframework.web.struts.DelegatingActionProxy" scope="request" parameter="method" validate="false"> n3TovXq`.
<forward name="indexfor" path="/WEB-INF/jsp/front/index.jsp" /> QK F {o
</action> Pm`<@!=
3@_6Co^"P
l5p ~#W5#
9^-o,eV4
<action path="/iframeAction" type="org.springframework.web.struts.DelegatingActionProxy" scope="request" parameter="method" validate="false"> n"XLD-xO
<forward name="showarticles" path="/WEB-INF/jsp/front/article/showarticlesframe.jsp" /> 6@+_%
<forward name="showmessages" path="/WEB-INF/jsp/front/message/messageframe.jsp" /> %{+c UM`tN
<forward name="showarticlelist" path="/WEB-INF/jsp/front/article/articlelistframe.jsp" /> ku^g^fdpfA
<forward name="albumindex" path="/WEB-INF/jsp/front/photo/photoframe.jsp" /> $avGSAbEU
</action> p+ 4,0
25,bcwF
<action path="/user/useraccountaction" type="org.springframework.web.struts.DelegatingActionProxy" name="useraccountForm" scope="request" parameter="method" validate="false"> cHq} ]-D1}
<forward name="loginOK" path="/WEB-INF/jsp/front/user/loginOK.jsp" /> 4 &OBG$p
<forward name="regeditOK" path="/WEB-INF/jsp/front/user/regeditOK.jsp" /> ~<G -.o7$[
<forward name="loginOut" path="/WEB-INF/jsp/front/user/loginOut.jsp" /> v[b5G<5
<forward name="base_infor" path="/WEB-INF/jsp/front/user/user_baseinformation.jsp" /> 3X5o<P}!
</action> #o*CJ<j
I~@HX_
<action path="/article/articleaction" type="org.springframework.web.struts.DelegatingActionProxy" name="articleForm" scope="request" parameter="method" validate="false"> (w%A H
<forward name="addarticle" path="/WEB-INF/jsp/front/article/addarticle.jsp" /> +) SI4kp/
<forward name="sendArticle" path="/WEB-INF/jsp/front/article/addarticleOK.jsp" /> 9M4 RuZ
<forward name="readArticle" path="/WEB-INF/jsp/front/article/readarticle.jsp" /> ePrh[Q+y
</action> g) ~[:U
<action path="/photo/photoaction" type="org.springframework.web.struts.DelegatingActionProxy" name="photoForm" scope="request" parameter="method" validate="false"> 3-#edV1
<forward name="photos" path="/WEB-INF/jsp/front/photo/photos.jsp" /> xz'e79p
<forward name="addphotoOK" path="/WEB-INF/jsp/front/photo/addphotoOK.jsp" /> Hqd 3PG$
<forward name="addphotoOK" path="/WEB-INF/jsp/front/photo/addphotoOK.jsp" /> q7D&2_9
<forward name="deletephotoOK" path="/WEB-INF/jsp/front/photo/deletephotoOK.jsp" /> VE #Ey
</action> %7_Il!$N
]IKQsKG
<action path="/manage/manageaction" type="org.springframework.web.struts.DelegatingActionProxy" scope="request" parameter="method" validate="false"> *MN(c-<Q
<forward name="indexframe" path="/WEB-INF/jsp/front/manage/indexframe.jsp" /> C&A oan
<forward name="articleframe" path="/WEB-INF/jsp/front/manage/articleframe.jsp" /> *3~_u|b
<forward name="articlelist" path="/WEB-INF/jsp/front/manage/articlelist.jsp" /> 4"[O
<forward name="articletagframe" path="/WEB-INF/jsp/front/manage/articletagframe.jsp" /> o;1Xdq*R
<forward name="articletypeframe" path="/WEB-INF/jsp/front/manage/articletypeframe.jsp" /> .sE$o! k
<forward name="commentframe" path="/WEB-INF/jsp/front/manage/commentframe.jsp" /> >(wHTvm@
<forward name="photoframe" path="/WEB-INF/jsp/front/manage/photoframe.jsp" /> w12XRQ
<forward name="messageframe" path="/WEB-INF/jsp/front/manage/messageframe.jsp" /> .5(|Q
<forward name="friendframe" path="/WEB-INF/jsp/front/manage/friendframe.jsp" /> eI]/i"o
</action> rE}{FMU
.#6i5OEfK
Za{B,#7$
...... N2YQ#hX8
...... G"~T9t~`
...... xna#sP~L
<!-- struts配置结束 --> t`8i@PQ2k
</struts-config> 9m7 ]c p
138S%I^,H
在struts中配置spring: fU5-c<
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"> ,Y)E1~*)=
<set-property property="contextConfigLocation" value="/WEB-INF/config/spring/applicationContext.xml" /> #e_=4 SIa
</plug-in> %<m>gEfOC
Rj'CKh$p
再就是给出一个struts实现的分页吧: CI%c_^w#
6V>*$f~
qcM2 U
Action类: zq3aRJ@U
;f2-LF{
public ActionForward messageList(ActionMapping mapping, ActionForm form, J*I%0V[ *f
HttpServletRequest req, HttpServletResponse rep) throws UnsupportedEncodingException { H8FJ6/H8-
Fvv+!;e
ActionMessages msgs = new ActionMessages(); nDok,T!
PageBean pb = new PageBean(); MI`n:_
UserAccount user = (UserAccount)req.getSession().getAttribute(CoreFinal.USERLOGIN_SESSION_ATTRKEY); <K$: bW
String page = req.getParameter("currentPage"); dN@2F/
String delids = req.getParameter("delids"); Z, [ AZ
1RQi`H}
int currentPage = 1; oa@i1?;
if (page == null) { / )Pr /
currentPage = 1; "a=#d?fu
} else { 'X</ cx
currentPage = Integer.parseInt(page); ${"FcereN
} w\ 6Y1G=W@
boolean b =false; 7LN ]A !
if(delids != null && delids.length()>0){ *0RyT bDl
String[] s = delids.split(","); _@r HXQ$
Message[] messages = new Message[s.length]; x%>`}<$4z
LgV_`e1t;
for(int i=0;i<s.length;i++){ :kxx #8n'
Message m = this.messageDao.getMessageById(new Integer(s[i]).intValue()); Xf (}.MY
messages = m; IV@> >
} =uwnqd
try{ +J3)V,f'
b = this.messageDao.deleteMessages(messages); #7 m=3\)A
}catch(Exception ex){ U69+w S{g
log.error(ex); 8U oXu:
} !K_QWv$I
mmbfdz{
if(!b){ (Z'n-A
msgs.add("messageList", new ActionMessage("deleteMessagesException")); ?cYAC Iuh
this.saveErrors(req, msgs); J"[y5Q:K
return mapping.findForward("succ"); \q}Gkhj
}else{ oM J"4d['
System.out.println("删除留言成功"); E<UfJcs 2i
} {] &?@!Ur
} H;lc>Dhn
?7Lxv?v\
List mfilter = new LinkedList(); ivUE;ZY_
List totalmessageList = new LinkedList(); kDIJ6+
mfilter.add(new SqlCondition(" and ", (:.`g$I
"m.userAccountByBloghost.userId", "=", user.getUserId(), EBq{ 2=o+
SqlCondition.Integer)); lGz$
try{ Un{"#J<mP
totalmessageList = this.messageDao.getMessageList(mfilter); ~ f]r[
}catch(Exception ex){ /kU2XyN
msgs.add("messageList", new ActionMessage("MessageListException")); {wKO+we0
this.saveErrors(req, msgs); n< (B"/
return mapping.findForward("succ"); P.49kLm)
} kIWL<p}
9+t"KElW
pb.setCurrentPage(currentPage); A#d9Kc `EI
pb.setTotalRows(totalmessageList.size()); @AaT Q|U&
pb.setPageRecorder(5); FJj<;j69Z
pb.initPageBean(pb); S}Z=k8H
>dfxWQwq
List messagelists = null; 7J>"xy(7
try{ 48T3@PE /
messagelists = this.messageDao.getMessageList(mfilter,pb.getCurrentPage(),pb.getPageRecorder()," m.id desc"); "+^J\
}catch(Exception ex){ >y\A:.f_3
msgs.add("messageList", new ActionMessage("MessageListException")); Rpzyi.|cyz
this.saveErrors(req, msgs); .xEnlxTKl
return mapping.findForward("succ"); q\>h
} ~,1; l%
req.setAttribute("b",b); 8,]cJ|R(
req.setAttribute("pb",pb); btdU\GI(
req.setAttribute("messagelists",messagelists); 0#k}1.?,L
return mapping.findForward("messageframe"); mcJJDQJk ~
} rBg]u[z}
XDa[)\7s=
zRAc}\i/
页面: dz(+UA=`a
4'YFHaTl>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> ML48 /%D(
<%@ taglib prefix="c" uri="[url]http://java.sun.com/jsp/jstl/core"%[/url]> >9L'bESm
<%@ taglib prefix="fmt" uri="[url]http://java.sun.com/jsp/jstl/fmt"%[/url]> =H=6@|}=
<%@ page isELIgnored="false"%> "xO{OY]BF
u p{OFS
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> :Yzovo7Q!
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> zf.RR&;yB
<meta http-equiv="pragma" content="no-cache"> Kl u;N
<meta http-equiv="cache-control" content="no-cache"> "xl}~@.
<meta http-equiv="expires" content="0"> x[$VoJ6g'
<link href="../css/style.css" rel="stylesheet" type="text/css"> b"I[yk/
|q;Z-y wM
<script type='text/javascript' src='../ajax/interface/messageAjax.js'></script> v_of V'6
<script type='text/javascript' src='../ajax/engine.js'></script> qGR j`2
<script type='text/javascript' src='../ajax/util.js'></script> eow si
<script type='text/javascript' src='../js/ajax.js'></script> @TF$joU!o
<script type="text/javascript"> Vc oYi
m%K78z
<body style='border:0px; margin:0px;'> b7ZwAl<
<center> V}6RN80'o
UsD#&8?
<table width="700" border="1" cellPadding=3 borderColor="#666666" cellspacing="0" style="BORDER-COLLAPSE:collapse"> yK(/w*6>s
<tr> \/.(tdro
<td colspan="2"> m1MDVB
个人服务 *<'8(t43
</td> /AW33e 8'o
</tr> @}T9y \Bw
<tr> 9}6sR4jW
<td colspan="2" align="right" style="padding-right:35px;"> F O 1]&~K
留言板管理┆<a href="?method=messageList">所有留言</a> -/8< ] T
</td> Q;5+?G1
</tr> ID: qi
_-u Yn
<tr> ^0)p |]&
<td colspan="2" align="center"> IZ|9hH+%
yMVR"`
<form action="?method=messageList" method="post" name="delform"> Yl[K?WQ`
<INPUT type="hidden" value="" name="delids"> Fd)7E#P{(
</FORM> $bop{
]#aqII&
<table cellpadding="0" cellspacing="0" border="0" width="90%"> s$sb &N6
<tr height="25"> `n#[24
<td colspan="4" align="left" background="../images/publish_body_spilt.gif"> &|%!1CAK:%
<table cellpadding="0" cellspacing="0" border="0"> &L oJbSy
<tr> 7'Yz-
<td width="30" valign="middle"> 41_ xEVw
<a href="javascript:history.back(-1);"><img src="../images/Undo.gif.gif" border="0"></a> ;wV p#H
</td> ^Y " -[?\
<td width="80"> v\c m$R
<a href="#" onclick="selectallrows()">全部选择</a> ,1{tH3Zo
</td> (2+ADcy'
<td width="80"> 8`PdXLOjW
<a href="#" onclick="unselectallrows()">全部取消</a> &|LSJhr
</td> @:Z(IP`x?
<td width="80"> e~E7I!^U
<a href="#" onclick="delsubmit()">删除</a> 2bL~:$Q[
</td> ':yq$"
</tr> K2TS+ !9
</table> 9.|ID4 L(
</td> l#DQq;m
</tr> 8yYHGoI
<tr> ]>~p =KZs
<td> !7M\O2YYDn
BJX~^tni
<table cellpadding="0" cellspacing="0" border="0" width="100%"> C%'~ ".
_HwW1#H\U
<tr> H+v?>VQ
<td colspan="5"> 8]B,a3;
N o 8
<div id="messages" nM7**d
style="width:624px; height:328px; z-index:2; overflow-y: scroll; overflow-x: none; SCROLLBAR-FACE-COLOR: #b0c4de; MARGIN: 0px; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #BEE781; LINE-HEIGHT: 12px; SCROLLBAR-ARROW-COLOR: #ffeff7; SCROLLBAR-TRACK-COLOR: #b0c4de; SCROLLBAR-DARKSHADOW-COLOR: #333333; left: 242px;"> $upZ\~H~
V<<Rmx(&
<table cellpadding="0" cellspacing="0" border="0" width="100%" id="listtable"> $wZEuzTq
<tr> OoR4n95&?
<td> /u/w>&j;
|e@`&F)?
<c:set var="i" value="1"></c:set> rIR`u.
IM~n
<c:forEach items="${messagelists}" var="message" begin="0" end="20" step="1"> 0^#` oc
<input type="hidden" value='${message.id}' name="ids"> y]hu&db0
W"eD$Co\
<table cellpadding="0" cellspacing="0" border="0" width="100%"> 3\j!)]6
-;LH!(pV|-
<tr id="trids" height="24" bgcolor="#b0c4de"> ^%$!Q
<td> f-! O1 k
<INPUT type="checkbox" name="ms" value="${message.id}" onclick="trOnClick(${message.id});"> 45bEi<mi
</td> <k1P'X3a7
<td> b R!b;KV A
<strong><span><a href="#"><font color="#0000ff">${message.userAccountBySpeech.petName}</font></a></span> 发表于:<fmt:formatDate value="${message.creattime}" pattern="yyyy-MM-dd HH:mm:ss" /></strong> Ny$e19I8
</td> zo 1(i
<td> <c:choose> Zs|C]' O
<c:when test="${message.answer_content != null}"> arfZ7
<a href="javascript:showanswer(3,${message.id});">回复</a> pFd: 7#
</c:when> -.Zr)D$6Xd
<c:otherwise> >6 |+9$Q
<a href="javascript:showanswer(1,${message.id});">回复</a> +Ck~:
</c:otherwise> $OA$kUVT
</c:choose> AC%t8 ;_,
c\ i4m
<a href="javascript:del(${message.id})">删除</a> :c%M`n7^K
</td> /SOh\4j7
</tr> w#GPmiz#B
<tr height="40" bgcolor="#fdf5e6"> RMA4Bf%u
<td colspan="3" style="padding-left:15px;"> ?t &xD
<c:if test="${message.issilent == '0'}"> 368h5*lF
<font color="red">(悄悄话)</font> 5B4@wn'3p
</c:if> $k]=_
<c:out value="${message.content}"></c:out> |;Z*0hm3xt
</td> ,XWS+aOpH
</tr> =u >Gn8
'*-cl J'"
<tr bgcolor="#fdf5e6"> (VS#Q#
<td colspan="3"> WD$]'[RF
<c:choose> J)#|(
<c:when test="${message.answer_content != null}"> @)k}`0G
<div id="answer1_${message.id}" style="display:block;border-width:thin"> cu<d8;
<table> lq} G>|Q
<tr><td> ~^=[Xd!kbx
你回复<font color="#0000ff">${message.userAccountBySpeech.petName}</font>: Zj_ WSAZ
</td> '(g>0*XCz
</tr> %h}b ?>
<tr> w*~!AvO
<td valign="bottom" style="padding-left:10px;"> yHx9y=Qh#
pUn[EZ.d
<c:out value="${message.answer_content}" /> ^ar <
</td> ,h]G 45=7
</tr> u ]B l
</table> STR 3)X
</div> Ff(ClXOwM
<div id="answer2_${message.id}" style="display:none;border-width:thin"> CF<kfRUCS
<table> O"TY+$3Ja
<tr><td colspan="2"> uS]Nw|+>
你回复<font color="#0000ff">${message.userAccountBySpeech.petName}</font>: 04\TS;|
</td> y)ehN :
<tr> <tr> <td> j\COb
<TEXTAREA name="answermessage" cols="60" rows="5"><c:out value="${message.answer_content}" /></TEXTAREA> (L3ti-kl
</td><td valign="bottom" style="padding-left:10px;"><A href="#">回复</a> <a href="#" onclick="showanswer(4,${message.id});">取消</a></td></tr></table> Dr`"z Oy10
</div> "()DU'Y
</c:when> vyrbSo. A
<c:otherwise> h3e yS9'M\
<div id="answer1_${message.id}" style="display:block;border-width:thin"> K;54i<Im
<table> 2y38OwQFT
S=$gt'
<tr><td> !)&]e<9In
</td> &3*R;f^5
</tr> <^*:\@)9q
<tr> } FWt5sF0
<td valign="bottom" style="padding-left:10px;"> %qKKW5"$
</td> $(`ZmEe
</tr> Se:{yz
</table> )fcYH,
</div> ^zO52|z
<div id="answer2_${message.id}" style="display:none;border-width:thin"> Ey* >Cc
<table> <tr><td colspan="2"> VwBKIH d
你回复<font color="#0000ff">${message.userAccountBySpeech.petName}</font>: Rl@j%['a
</td> </tr> <tr> <td> L2^yUwE
<TEXTAREA name="answermessage" cols="60" rows="5"><c:out value="${message.answer_content}" /></TEXTAREA> lL-nG-0
</td><td valign="bottom" style="padding-left:10px;"><A href="#">回复</a> <a href="#" onclick="showanswer(4,${message.id});">取消</a></td></tr></table> b+%`-H[Y
</div> U:H(s#
<div id="answer_${message.id}" style="display:none;border-width:thin"> C_yM4')S`
<table><tr><td> <TEXTAREA name="answer_content_${message.id}" cols="60" rows="5"></TEXTAREA> U0~7*xv<
</td><td valign="bottom" style="padding-left:10px;"><A href="#" onclick="showmessage(${message.id})">回复</a> <a href="javascript:showanswer(2,${message.id});">取消</a></td></tr></table> v#5U"P8e
</div> 5o)N\<3Lt
</c:otherwise> Le;3IBtnJ
@ emRnp
</c:choose> t*.fIg z5)
P; H6y
</td> X0Rj"P,l
</tr> -d[ KG{
</table> e>DN7 q M
!n-A Cx.
</c:forEach> yYgA 4IF}
</td> vj|} $JO
</tr> %>YA *8Yh
</table> 87}{i R^
^U2 =VM
</div> 9pY<E'f
</td> +\iCh~1i
</tr> !Tdzl@M4
</table> vtI&s%\Q
</td> B``QUV%X
</tr> C7;\Pn_
9zf*^i8t
<tr height="30"> `&##: 'y
<td> ?dB`Cc@>^
j xzm\By
:<6[8]#P}[
</td> 0Yh)0^'
</tr> 17FZ\)5
'&/@;]n_
<tr> #^f,"CRJ
(08jfrz
<td align="center"> [G 9zM@-
xj@\iJM|u
<table> $tA,|/H8
<tr> 7qHLBo?s@
<td> {x7Ul+dR
}-BUfV;&{
<c:set var="pb" value="${pb}" /> 8;f/
<c:choose> $4W.d}s
<c:when test="${pb.currentPage == 1}"> ]Mj:AY}
首页 K cJ/-
</c:when> QMb6JNxD%G
<c:otherwise> W/iact!
<a href="?method=messageList¤tPage=1">首页</a> 18~.0vv= T
</c:otherwise> F|}.<UHlN
</c:choose> =j z R4Pa
<c:choose> 5] (RC0eRr
<c:when test="${pb.hasPreviousPage == 'true'}"> Y#M!A+@+K
<a href="?method=messageList¤tPage=${pb.currentPage -1}">上一页</a> }9<K;=c"B
</c:when> c+74#:a,
<c:otherwise> xB<<OgC
上一页 d,_c7O~).
</c:otherwise> @|ygGY
</c:choose> IdVi p
<c:choose> h@mfR/lhl
<c:when test="${pb.hasNextPage == 'true'}"> 1']}pHg+
<a href="?method=messageList¤tPage=${pb.currentPage+1}">下一页</a> .+0-g}T^;
</c:when> HRiW35yHEx
<c:otherwise> pGq=J1
下一页 Cjz'c,_s?
</c:otherwise> O]8t'CO}
</c:choose> ?O<UGHP#
<c:choose> (VnY0v
<c:when test="${pb.currentPage == pb.totalPages}"> ."y@j i<_7
末页 'mX} dqv
</c:when> \m[XDm 7s
<c:otherwise> ?(NJMw;4
<a href="?method=messageList¤tPage=${pb.totalPages}">末页</a> L0t":w\Q
</c:otherwise> l//w66<
</c:choose> gPHw$x
<SELECT id="pages" onchange="selectpage('?method=messageList¤tPage=',this.value);"> BO,y;R7
<c:forEach begin="1" end="${pb.totalPages}" step="1" var="i"> M5u=e}n?
<c:choose> J)G %,"
<c:when test="${pb.currentPage == i}"> ' y>5>m6
<OPTION value='${i}' selected="selected"> >E`7Em/
${i} S[#F{W
</OPTION> FT8ft$K
</c:when> AVQk[0xe
<c:otherwise> @w+jXJ+
<OPTION value='${i}'> >~y5a ?_
${i} vm\/aTF%g
</OPTION> A5o>Jn|h39
</c:otherwise> >"IG3x+
</c:choose> P:O5}-
</c:forEach> y"N D
</SELECT> |[d\P*U
v.B2BPs3
</td> Ef9Jad&-
</tr> -d;N}b1
</table> %. LY9gXhg
</td> MBElrX
</tr> `e /h_B>
DeGit48b
</table> :z2$S5l
</td> ,Uk.@k"Mu
</tr> %5HpiJOCw
<tr> C& hn=5Pu
<td colspan="2"> V~!%cBj
,2-9t^C
A#aR?
</td> 'J^tZkF
</tr> &{NH0 "(
</table> qHcaB6
W^}cmF}
</center> :E6Dc6
MEc&T
<c:if test="${b == true}"> W>MgWB'Q\
<script> MW`Q3sC{
//document.delform.delids.value = ""; cHfG%N(GS
alert("删除留言成功"); 9H{;G35
</script> jQ0w-
</c:if> _grvcFe;2
[/i]
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者