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

📄 home.jsp

📁 一个使用struts+hibernate+spring开发的完的网站源代码。
💻 JSP
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<html>
<head>
   <title>Invoice</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
</head>
<body>
<f:view>
<h:form id="invoiceForm">
<h:messages/><p>
Invoice Number: <h:inputText value="#{invoice.invoiceNumber}"/><br>
Purchaser: <h:inputText value="#{invoice.purchaser}"/><br>
<p>
<h:dataTable
    rows="0"
    value="#{invoice.lineItems}"
    var="item"
>
    <h:column>
        <f:facet name="header">
            <h:outputText  value="Product"/>
        </f:facet>
        <h:inputText value="#{item.product}"/>
    </h:column>
    <h:column>
        <f:facet name="header">
            <h:outputText  value="Quantity"/>
        </f:facet>
        <h:inputText value="#{item.quantity}"/>
    </h:column>
</h:dataTable>
<h:commandButton id="addButton"
    value="Add Line Item"
    action="#{invoice.addLineItem}"
    >
</h:commandButton>
<h:commandButton id="removeButton"
    value="Remove Line Item"
    action="#{invoice.removeLineItem}"
    >
</h:commandButton>
</h:form>
</f:view>
</body>
</html>

⌨️ 快捷键说明

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