⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 article.jsp

📁 J2EE电子商务系统开发从入门到精通---基于Struts和Hibernate技术实现
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<%@page import = "java.util.*"%>
<%@page import = "model.bbs.hibernate.*"%>
<%@page import = "model.hr.hibernate.*"%>
<%
    request.setCharacterEncoding("gb2312");
    Article article = (Article)session.getAttribute("article");
    List responseList = (List)session.getAttribute("articleresponselist");
    Employee employee = (Employee)session.getAttribute("employee");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
        <title>BBS SYSTEM</title>
    </head>

    <body topmargin="0" leftmargin="0">
        <table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td align="center">&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td height="417"><table width="100%"  border="1" cellpadding="0" cellspacing="1" bgcolor="#44608A">
                    <tr>
                        <td height="25" colspan="2" background="file:///F|/asp&#23454;&#20363;/BBS/Images/bg1.gif" bgcolor="#60BFFF"><strong>帖子主题:</strong><strong><%=article.getName()%></strong></td>
                    </tr>
                    <tr>
                        <td rowspan="2" valign="top" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="44%" height="25" align="right">楼 主:</td>
                                <td width="56%"><%=article.getEmployee().getName()%></td>
                            </tr>
                            <tr>
                                <td height="25" align="right">部 门:</td>
                                <td><%=article.getEmployee().getDepartment().getName()%></td>
                            </tr>
                            <tr align="center">
                                <td height="25"><div align="right">权 限:</div></td>
                                <td height="25"><div align="left"><%=article.getEmployee().getPower().getName()%></div></td>
                            </tr>
                        </table></td>
                        <td width="73%" height="122" bgcolor="#FFFFFF">
                        <p><%=article.getContent()%></p>
                    </tr>
                    <tr>
                        <td height="28" bgcolor="#FFFFFF"><div align="right">发表于:<%=article.getPresstime()%></div></td>
                    </tr>
                    <%
                        for (int i=0; i<responseList.size(); i++) {
                            Articleresponse articleresponse = (Articleresponse)responseList.get(i);
                            String author = articleresponse.getEmployee().getName();
                            String department = articleresponse.getEmployee().getDepartment().getName();
                            String power = articleresponse.getEmployee().getPower().getName();
                            String content = articleresponse.getContent();
                            String time = articleresponse.getPresstime();
                    %>
                    <tr>
                        <td rowspan="2" valign="top" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="44%" height="25" align="right">回复者:</td>
                                <td width="56%"><%=author%></td>
                            </tr>
                            <tr>
                                <td height="25" align="right">部 门:</td>
                                <td><%=department%></td>
                            </tr>
                            <tr align="center">
                                <td height="25"><div align="right">权 限:</div></td>
                                <td height="25"><div align="left"><%=power%></div></td>
                            </tr>
                        </table></td>
                        <td height="121" bgcolor="#FFFFFF"><p><%=content%></p>
                    </tr>
                    <tr>
                        <td height="29" bgcolor="#FFFFFF"><div align="right">发表于:<%=time%></div></td>
                    </tr>
                    <%
                            }
                    %>
                    <tr align="right" bgcolor="#EFEFEF">
                        <td height="29" colspan="2">&nbsp;</td>
                    </tr>
                </table></td>
            </tr>
            <td><tr>
            <td height="250">
                <form name="form1" method="post" action="/EMIS/responseinsert.do?employeeid=<%=employee.getId()%>&articleid=<%=String.valueOf(article.getId())%>">
                    <table width="392" border="0" align="right">
                        <tr>
                            <td width="386"><img src="bbs/image/reply.jpg" width="80" height="30"></td>
                        </tr>
                        <tr>
                            <td height="195"><textarea name="content" cols="60" rows="20" id="content"></textarea></td>
                        </tr>
                        <tr>
                            <td height="23"><div align="center">
                                <input type="submit" name="Submit" value="回复">
                          </div></td>
                        </tr>
                    </table> 
                </form>
            </td>
        </table>
    </body>
</html>

⌨️ 快捷键说明

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