view.jsp

来自「它是利用jsp+javabean来编写的」· JSP 代码 · 共 56 行

JSP
56
字号
<%@page pageEncoding="GB2312"%>
<%@page contentType="text/html; charset=gb2312"%>
<!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>View Question Page</title>
        <link href="Style.css" rel="stylesheet" type="text/css">
</head>
    <body>
    <jsp:useBean id="view" class="ACTION.QuestionView" scope="page"/>
    <jsp:useBean id="login" class="ACTION.LoginAction" scope="session"/>
    <jsp:setProperty name="view" property="userName" value="<%=login.getName()%>"/>
    <jsp:setProperty name="view" property="view" value="<%=request.getQueryString()%>"/>
    <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td bgcolor="#6BAD0A" class="whitefont">问题细则:</td>
          </tr>
          <tr>
            <td><jsp:getProperty name="view" property="view"/></td>
          </tr>
          <tr>
            <td bgcolor="#CEFB94">&nbsp;</td>
          </tr>
        </table>
        <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td bgcolor="#6BAD0A" class="whitefont">答案列表:</td>
          </tr>
          <tr>
            <td><jsp:getProperty name="view" property="answer"/></td>
          </tr>
          <tr>
            <td bgcolor="#CEFB94">&nbsp;</td>
          </tr>
        </table>
        <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td bgcolor="#6BAD0A" class="whitefont">请在此处填写您的答案:</td>
          </tr><form action="Answer.jsp?<%=request.getQueryString()%>" method="POST">
          <tr>
              <td>
            <textarea name="context" rows="30" cols="140"width="749" height="320"></textarea>
              </td>
          </tr>
          <tr>
            <td bgcolor="#CEFB94"><div align="center">
              <input name="submit" type="submit" value="确定"/>
            </div></td>
          </tr>
          </form>
        </table> 
    </body>
</html>

⌨️ 快捷键说明

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