updlist.jsp

来自「Struts入门的一个好例子 Struts入门的一个好例子」· JSP 代码 · 共 54 行

JSP
54
字号
<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/struts/jsp/include/taglib.jsp"%>

<html>
  <head>
    <title>Add</title>
  </head>
  <body>
    <html:form action="/daily">
      <h1><bean:message key="daily.ist" /></h1>
      <hr />
      
      <logic:notEmpty name="dailies">
      <table border="1">
        <tr>
            <th><bean:message key="common.id" /></th>
            <th><bean:message key="daily.daily_date" /></th>
            <th><bean:message key="daily.daily_weather" /></th>
            <th><bean:message key="daily.daily_pos" /></th>
            <th><bean:message key="daily.daily_content" /></th>
        </tr>
        <logic:iterate name="dailies" id="info" indexId="index">
        <tr>
            <td>
                <bean:write name="info" property="id" />
                <html:hidden name="info" property="id" indexed="true" />
                <br>
            </td>
            <td>
                <html:text name="info" property="daily_date_dsp" indexed="true"></html:text>
            </td>
            <td>
                <html:text name="info" property="daily_weather" indexed="true"></html:text>
            </td>
            <td>
                <html:text name="info" property="daily_pos" indexed="true"></html:text>
            </td>
            <td>
                <html:text name="info" property="daily_content" indexed="true"></html:text>
            </td>
        </tr>
        </logic:iterate>      
      </table>
      </logic:notEmpty>
      
      <html:submit onclick=
        "document.forms[0].action = document.forms[0].action+'?method=updSel'">
        <bean:message key="common.upd" />
      </html:submit>
    </html:form>
  </body>
</html>

⌨️ 快捷键说明

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