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

📄 leaseauto.jsp

📁 用struts框架做的车辆租赁管理系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="utf-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ page import="java.util.*"%> 
<%@ page import="java.text.*"%>  

<% 
String datetime=new SimpleDateFormat("yyyy-MM-dd").format(Calendar.getInstance().getTime()); //获取系统时间
request.setAttribute("date",datetime); 
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>MyJsp.jsp</title>


  </head>
  <!-- 设计两个表:
1. 车辆信息autos(id,category类别,model型号,no车牌号,price租车价格)
2. 租车信息leases(id,autoId车辆id,customer客户名称,leaseDate租车日期,returned是否还车?,returnDate还车日期)
   -->
  <body>
    <p>
      <html:form action="/lease.do" method="post" readonly="">
     
    </p>
	<%@ include file="head.jsp"%>
    <table width="672" height="350" border="1" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="668" height="221" background="image/bank.jpg"><table width="377" height="90" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="373">待租车辆:
              <html:select property="autoId">
                <logic:iterate id="car" name="cars">
                  <bean:define id="car0" name="car" property="id"></bean:define>
                  <bean:define id="car1" name="car" property="category"></bean:define>
                  <bean:define id="car2" name="car" property="model"></bean:define>
                  <bean:define id="car3" name="car" property="no"></bean:define>
                  <bean:define id="car4" name="car" property="price"></bean:define>
                  <html:option value="${car0}">${car1};${car2};车牌:${car3};价格:${car4}</html:option>
                </logic:iterate>
              </html:select>
              <html:errors property="customer_error"/>
              <br>
              <bean:define id="date" name="date"></bean:define>
租车日期:
<html:text property="leaseDate" value="${date}" readonly="true"></html:text>
<br>
租&nbsp; 车&nbsp; 人:
<html:text property="customer" maxlength="10"></html:text>
<html:errors property="customer_error"/>
<br>
<html:submit>提交</html:submit></td>
          </tr>
        </table></td>
      </tr>
    </table>
	 </html:form>
    <p>&nbsp;  </p>
  </body>
  <%@ include file="end.jsp"%>
</html:html>

⌨️ 快捷键说明

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