bbslist.jsp
来自「本程序采用Struts结构开发一个小型的BBS论坛 ,论坛包括用户注册与登陆,主」· JSP 代码 · 共 107 行
JSP
107 行
<%@ page contentType="text/html;charset=GB2312" language="java" %><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %><html:html><head><title></title><html:base/></head><body bgcolor="white"><%@ include file="include_head.jsp"%><html:link page="/toTopicListAction.do?action=find&search=search" paramId="expression" paramName="topicListForm" paramProperty="returnID" > <div style="font-size: 12px"> <<<<返回主题列表页面</div></html:link> <logic:present name="topicList"><table width="98%" border="1" bgColor="#E6F2E7" borderColorDark="#FFFFFF" borderColorLight="#008000" cellPadding="3" cellSpacing="0" ><tr bgcolor='#90C090' ><th colSpan="2" style="color: white; font-size: 12px; font-weight: bold; background-color: #a6d2d7; background-image: url('images/bg1.gif')"> </th></tr><logic:iterate name='topicList' id='topicList' scope='request' indexId="indexId"><tr><td width="30%">作者:<br> <bean:write name='topicList' property='username' /><br> 发表时间:<br> <bean:write name='topicList' property='datetime' /></td><td width="70%"> <logic:equal name='indexId' value='0'> 主题:<br> <bean:write name='topicList' property='topic' /> <hr> </logic:equal><br><bean:write name='topicList' property='body' filter='false'/><logic:notEqual name='topicList' property='image' value='http://'><logic:notEqual name='topicList' property='image' value=''><hr> 与主题相关文件:<br> <a href="<bean:write name='topicList' property='image' />"> <bean:write name='topicList' property='image' /> <logic:match name='topicList' property='image' value='.jpg' location='end'> <img src="<bean:write name='topicList' property='image' />"> </logic:match> <logic:match name='topicList' property='image' value='.JPG' location='end'> <img src="<bean:write name='topicList' property='image' />"> </logic:match> <logic:match name='topicList' property='image' value='.gif' location='end'> <img src="<bean:write name='topicList' property='image' />"> </logic:match> <logic:match name='topicList' property='image' value='.GIF' location='end'> <img src="<bean:write name='topicList' property='image' />"> </logic:match> <logic:match name='topicList' property='image' value='.bmp' location='end'> <img src="<bean:write name='topicList' property='image' />"> </logic:match> <logic:match name='topicList' property='image' value='.BMP' location='end'> <img src="<bean:write name='topicList' property='image' />"> </logic:match> <logic:match name='topicList' property='image' value='.pnp' location='end'> <img src="<bean:write name='topicList' property='image' />"> </logic:match> <logic:match name='topicList' property='image' value='.PNP' location='end'> <img src="<bean:write name='topicList' property='image' />"> </logic:match> </a> </logic:notEqual> </logic:notEqual></td></tr><tr bgcolor='#eeffee' ><td colSpan="2"> <bean:write name='topicList' property='child' /></td></tr></logic:iterate><tr><td align=middle colSpan=15 ><bean:write property='pagestr' name='topicListForm' filter='false' /></td></tr></table><form method='post' name='topicListForm' action="/StrutsBBS/topicListAction.do?action=revert&search=search&expression=<bean:write name='topicList' property='ID' />" onsubmit="return validateTopicListForm(this);"><html:hidden name='topicList' property='ID' /><html:hidden name='topicList' property='topicID' /><html:hidden name='topicList' property='parentID' /><html:hidden name='topicList' property='topic' /><html:hidden name='topicList' property='child' /><html:textarea name='topicList' property='body' value="" style="width:95%; height:160" /><div style="font-size: 12px">与回复相关的文件(或图片)链接: </div><html:text name='topicList' property='image' value="http://" style="width:95%" /> <br><html:submit>发出回复</html:submit></form ></logic:present><html:javascript formName="topicListForm"/><%@ include file="include_end.jsp"%></body></html:html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?