问题描述
- jsp增删改查怎么写?怎么与actiong,dao结合?ssh框架 求大神指导!跪求~
-
<%@page contentType="text/html; charset=UTF-8" import="java.util.*" %> <%@ taglib prefix="s" uri="/struts-tags" %> <html> <head> <jsp:include page='/res/inc/inc.jsp' flush='true'/> </head> <body> <s:form action="Add" id="form1" theme="simple" > <div class="buttonDiv"> <s:submit theme="simple" name="Add" value="添加" cssClass="button_style" /> </div> <div class="validatemsg"> <s:actionerror/> <s:fielderror/> <s:actionmessage/> </div> <div class=neibiao_top>发文 </div> <TABLE class="TableStyle" > <TR> <TH width="5%"> 序号</TH> <TH>主题</TH> <TH>分类ID</TH> <TH width="6%">编辑</TH> </TR> <s:iterator value="faWenList" status="st" var="cil"> <TR> <TD class="tdStyle" align="center"><s:property value='#st.index+1'/></TD> <TD class="tdStyle"><s:property value="zhuTi"/></TD> <TD class="tdStyle"><s:property value="fenLeiID"/></TD> <TD class="tdStyle" align="center"><a href='<s:url action="Edit"><s:param name="id" value="id"></s:param></s:url>'>编辑</a></TD> </TR> </s:iterator> </TABLE> </s:form> </body> </html>
解决方案
自己看看例子吧
http://blog.csdn.net/zhubinqiang/article/details/8498808
解决方案二:
难道没有学习过SSH?如果了解过应该大概思路了解一点吧
解决方案三:
http://blog.csdn.net/strutce/article/details/38120119
解决方案四:
http://blog.csdn.net/w_basketboy24/article/details/8642846
搞清楚,action不要直接操作数据库
时间: 2024-10-03 22:32:05