topiclistinsert.jsp

来自「本程序采用Struts结构开发一个小型的BBS论坛 ,论坛包括用户注册与登陆,主」· JSP 代码 · 共 70 行

JSP
70
字号
<%@ 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" %><%@ taglib uri="/WEB-INF/app.tld" prefix="app" %><html:html ><head><title></title><app:CheckLogon role="system;guest"/></head><body bgColor=white><html:base /><%@ include file="include_head.jsp"%> <div align=center><font face=黑体 color=#0000ff size=5>发表新主题</font> <hr> <logic:equal name='topicListForm' property='image' value='http://'>                  <html:form  action="/fileAction.do?action=fileup"    enctype="multipart/form-data"    method="post"  onsubmit="return validateTopicListForm(this);">         <input type="hidden" name="parentID" value="<bean:write name='topicListForm' property='parentID'/>">          请输入或选择要上传的文件:         <br><html:file property="theFile"  style="width:300"/><br>         <html:submit value="文件上传" />         </html:form> </logic:equal> <logic:notEqual name='topicListForm' property='image' value='http://'>               你已成功地上传了文件:         <bean:write name='topicListForm' property='image' /> </logic:notEqual>       <form action="/StrutsBBS/topicListAction.do?action=insert&amp;search=search&amp;expression=<bean:write name='topicListForm' property='parentID'  />  " method=post name="topicListForm" onsubmit="return validateTopicListForm(this);"><html:hidden name="topicListForm" property="ID"  /> <html:hidden name="topicListForm" property="topicID"  /> <html:hidden name="topicListForm" property="parentID"  /> <html:hidden name="topicListForm" property="username"  /> <html:hidden name="topicListForm" property="order"  /> <html:hidden name="topicListForm" property="hits"  /> <html:hidden name="topicListForm" property="child"  /> <html:hidden name="topicListForm" property="IP"  /> <html:hidden name="topicListForm" property="image"  />  <table cellSpacing=1 borderColorDark=#ffffff cellPadding=3 width="90%" bgColor=#e6f2e7 borderColorLight=#008000 border=2>  <tr>    <td width="10%" align="center">主题</td>    <td width="90%" align="center"><html:text name="topicListForm" property="topic"  style="width:100%"  />  </td></tr><tr>    <td width="10%" align="center">文件</td><td width="90%">            <html:text name='topicListForm' property='image'  style="width:100%" />        </td></tr><tr>    <td align="center">内容</td><td><html:textarea name='topicList' property='body' value="" style="width:100%; height:160" /> </td></tr></table>  <html:submit  value="发表新主题"   />  <html:reset  value="重写"   /></form ></div><html:javascript formName="topicListForm"/><html:javascript formName="fileForm"/><%@ include file="include_end.jsp"%></body></html:html >

⌨️ 快捷键说明

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