Add dist build and remove build dir
This commit is contained in:
parent
9f582d6e80
commit
ec4ec8599a
100 changed files with 1 additions and 1642 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
|||
/dist/
|
||||
/build/
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
Manifest-Version: 1.0
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:p="http://www.springframework.org/schema/p"
|
||||
xmlns:aop="http://www.springframework.org/schema/aop"
|
||||
xmlns:tx="http://www.springframework.org/schema/tx"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
||||
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
|
||||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd">
|
||||
|
||||
<!--bean id="propertyConfigurer"
|
||||
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
|
||||
p:location="/WEB-INF/jdbc.properties" />
|
||||
|
||||
<bean id="dataSource"
|
||||
class="org.springframework.jdbc.datasource.DriverManagerDataSource"
|
||||
p:driverClassName="${jdbc.driverClassName}"
|
||||
p:url="${jdbc.url}"
|
||||
p:username="${jdbc.username}"
|
||||
p:password="${jdbc.password}" /-->
|
||||
|
||||
<!-- ADD PERSISTENCE SUPPORT HERE (jpa, hibernate, etc) -->
|
||||
|
||||
</beans>
|
Binary file not shown.
|
@ -1,45 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<!-- Generated 8 avr. 2022 15:30:29 by Hibernate Tools 4.3.1 -->
|
||||
<hibernate-mapping>
|
||||
<class name="DAO.Customer" table="CUSTOMER" schema="APP">
|
||||
<id name="customerId" type="int">
|
||||
<column name="CUSTOMER_ID" />
|
||||
<generator class="assigned"></generator>
|
||||
</id>
|
||||
<property name="discountCode" type="char">
|
||||
<column name="DISCOUNT_CODE" length="1" not-null="true" />
|
||||
</property>
|
||||
<property name="zip" type="string">
|
||||
<column name="ZIP" length="10" not-null="true" />
|
||||
</property>
|
||||
<property name="name" type="string">
|
||||
<column name="NAME" length="30" />
|
||||
</property>
|
||||
<property name="addressline1" type="string">
|
||||
<column name="ADDRESSLINE1" length="30" />
|
||||
</property>
|
||||
<property name="addressline2" type="string">
|
||||
<column name="ADDRESSLINE2" length="30" />
|
||||
</property>
|
||||
<property name="city" type="string">
|
||||
<column name="CITY" length="25" />
|
||||
</property>
|
||||
<property name="state" type="string">
|
||||
<column name="STATE" length="2" />
|
||||
</property>
|
||||
<property name="phone" type="string">
|
||||
<column name="PHONE" length="12" />
|
||||
</property>
|
||||
<property name="fax" type="string">
|
||||
<column name="FAX" length="12" />
|
||||
</property>
|
||||
<property name="email" type="string">
|
||||
<column name="EMAIL" length="40" />
|
||||
</property>
|
||||
<property name="creditLimit" type="java.lang.Integer">
|
||||
<column name="CREDIT_LIMIT" />
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
Binary file not shown.
|
@ -1,15 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<!-- Generated 8 avr. 2022 15:30:29 by Hibernate Tools 4.3.1 -->
|
||||
<hibernate-mapping>
|
||||
<class name="DAO.DiscountCode" table="DISCOUNT_CODE" schema="APP">
|
||||
<id name="discountCode" type="char">
|
||||
<column name="DISCOUNT_CODE" length="1" />
|
||||
<generator class="assigned"></generator>
|
||||
</id>
|
||||
<property name="rate" type="big_decimal">
|
||||
<column name="RATE" precision="4" />
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,42 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<!-- Generated 8 avr. 2022 15:30:29 by Hibernate Tools 4.3.1 -->
|
||||
<hibernate-mapping>
|
||||
<class name="DAO.Manufacturer" table="MANUFACTURER" schema="APP">
|
||||
<id name="manufacturerId" type="int">
|
||||
<column name="MANUFACTURER_ID" />
|
||||
<generator class="assigned"></generator>
|
||||
</id>
|
||||
<property name="name" type="string">
|
||||
<column name="NAME" length="30" />
|
||||
</property>
|
||||
<property name="addressline1" type="string">
|
||||
<column name="ADDRESSLINE1" length="30" />
|
||||
</property>
|
||||
<property name="addressline2" type="string">
|
||||
<column name="ADDRESSLINE2" length="30" />
|
||||
</property>
|
||||
<property name="city" type="string">
|
||||
<column name="CITY" length="25" />
|
||||
</property>
|
||||
<property name="state" type="string">
|
||||
<column name="STATE" length="2" />
|
||||
</property>
|
||||
<property name="zip" type="string">
|
||||
<column name="ZIP" length="10" />
|
||||
</property>
|
||||
<property name="phone" type="string">
|
||||
<column name="PHONE" length="12" />
|
||||
</property>
|
||||
<property name="fax" type="string">
|
||||
<column name="FAX" length="12" />
|
||||
</property>
|
||||
<property name="email" type="string">
|
||||
<column name="EMAIL" length="40" />
|
||||
</property>
|
||||
<property name="rep" type="string">
|
||||
<column name="REP" length="30" />
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
Binary file not shown.
|
@ -1,21 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<!-- Generated 8 avr. 2022 15:30:29 by Hibernate Tools 4.3.1 -->
|
||||
<hibernate-mapping>
|
||||
<class name="DAO.MicroMarket" table="MICRO_MARKET" schema="APP">
|
||||
<id name="zipCode" type="string">
|
||||
<column name="ZIP_CODE" length="10" />
|
||||
<generator class="assigned"></generator>
|
||||
</id>
|
||||
<property name="radius" type="java.lang.Double">
|
||||
<column name="RADIUS" precision="52" scale="0" />
|
||||
</property>
|
||||
<property name="areaLength" type="java.lang.Double">
|
||||
<column name="AREA_LENGTH" precision="52" scale="0" />
|
||||
</property>
|
||||
<property name="areaWidth" type="java.lang.Double">
|
||||
<column name="AREA_WIDTH" precision="52" scale="0" />
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
Binary file not shown.
|
@ -1,33 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<!-- Generated 8 avr. 2022 15:30:29 by Hibernate Tools 4.3.1 -->
|
||||
<hibernate-mapping>
|
||||
<class name="DAO.Product" table="PRODUCT" schema="APP">
|
||||
<id name="productId" type="int">
|
||||
<column name="PRODUCT_ID" />
|
||||
<generator class="assigned"></generator>
|
||||
</id>
|
||||
<property name="manufacturerId" type="int">
|
||||
<column name="MANUFACTURER_ID" not-null="true" />
|
||||
</property>
|
||||
<property name="productCode" type="string">
|
||||
<column name="PRODUCT_CODE" length="2" not-null="true" />
|
||||
</property>
|
||||
<property name="purchaseCost" type="big_decimal">
|
||||
<column name="PURCHASE_COST" precision="12" />
|
||||
</property>
|
||||
<property name="quantityOnHand" type="java.lang.Integer">
|
||||
<column name="QUANTITY_ON_HAND" />
|
||||
</property>
|
||||
<property name="markup" type="big_decimal">
|
||||
<column name="MARKUP" precision="4" />
|
||||
</property>
|
||||
<property name="available" type="string">
|
||||
<column name="AVAILABLE" length="5" />
|
||||
</property>
|
||||
<property name="description" type="string">
|
||||
<column name="DESCRIPTION" length="50" />
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
Binary file not shown.
|
@ -1,18 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<!-- Generated 8 avr. 2022 15:30:29 by Hibernate Tools 4.3.1 -->
|
||||
<hibernate-mapping>
|
||||
<class name="DAO.ProductCode" table="PRODUCT_CODE" schema="APP">
|
||||
<id name="prodCode" type="string">
|
||||
<column name="PROD_CODE" length="2" />
|
||||
<generator class="assigned"></generator>
|
||||
</id>
|
||||
<property name="discountCode" type="char">
|
||||
<column name="DISCOUNT_CODE" length="1" not-null="true" />
|
||||
</property>
|
||||
<property name="description" type="string">
|
||||
<column name="DESCRIPTION" length="10" />
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
Binary file not shown.
|
@ -1,33 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<!-- Generated 8 avr. 2022 15:30:29 by Hibernate Tools 4.3.1 -->
|
||||
<hibernate-mapping>
|
||||
<class name="DAO.PurchaseOrder" table="PURCHASE_ORDER" schema="APP">
|
||||
<id name="orderNum" type="int">
|
||||
<column name="ORDER_NUM" />
|
||||
<generator class="assigned"></generator>
|
||||
</id>
|
||||
<property name="customerId" type="int">
|
||||
<column name="CUSTOMER_ID" not-null="true" />
|
||||
</property>
|
||||
<property name="productId" type="int">
|
||||
<column name="PRODUCT_ID" not-null="true" />
|
||||
</property>
|
||||
<property name="quantity" type="java.lang.Short">
|
||||
<column name="QUANTITY" />
|
||||
</property>
|
||||
<property name="shippingCost" type="big_decimal">
|
||||
<column name="SHIPPING_COST" precision="12" />
|
||||
</property>
|
||||
<property name="salesDate" type="date">
|
||||
<column name="SALES_DATE" length="10" />
|
||||
</property>
|
||||
<property name="shippingDate" type="date">
|
||||
<column name="SHIPPING_DATE" length="10" />
|
||||
</property>
|
||||
<property name="freightCompany" type="string">
|
||||
<column name="FREIGHT_COMPANY" length="30" />
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:p="http://www.springframework.org/schema/p"
|
||||
xmlns:aop="http://www.springframework.org/schema/aop"
|
||||
xmlns:tx="http://www.springframework.org/schema/tx"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
||||
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
|
||||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd">
|
||||
|
||||
<!--bean id="propertyConfigurer"
|
||||
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
|
||||
p:location="/WEB-INF/jdbc.properties" />
|
||||
|
||||
<bean id="dataSource"
|
||||
class="org.springframework.jdbc.datasource.DriverManagerDataSource"
|
||||
p:driverClassName="${jdbc.driverClassName}"
|
||||
p:url="${jdbc.url}"
|
||||
p:username="${jdbc.username}"
|
||||
p:password="${jdbc.password}" /-->
|
||||
|
||||
<!-- ADD PERSISTENCE SUPPORT HERE (jpa, hibernate, etc) -->
|
||||
|
||||
</beans>
|
Binary file not shown.
Binary file not shown.
|
@ -1,40 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:p="http://www.springframework.org/schema/p"
|
||||
xmlns:aop="http://www.springframework.org/schema/aop"
|
||||
xmlns:tx="http://www.springframework.org/schema/tx"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
||||
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
|
||||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd">
|
||||
|
||||
<bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"/>
|
||||
|
||||
<!--
|
||||
Most controllers will use the ControllerClassNameHandlerMapping above, but
|
||||
for the index controller we are using ParameterizableViewController, so we must
|
||||
define an explicit mapping for it.
|
||||
-->
|
||||
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
|
||||
<property name="mappings">
|
||||
<props>
|
||||
<prop key="index.htm">indexController</prop>
|
||||
<prop key="*.htm">BddController</prop>
|
||||
</props>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="viewResolver"
|
||||
class="org.springframework.web.servlet.view.InternalResourceViewResolver"
|
||||
p:prefix="/WEB-INF/jsp/"
|
||||
p:suffix=".jsp" />
|
||||
|
||||
<!--
|
||||
The index controller.
|
||||
-->
|
||||
<bean name="indexController"
|
||||
class="org.springframework.web.servlet.mvc.ParameterizableViewController"
|
||||
p:viewName="index"/>
|
||||
<bean name="BddController" class="controller.BddController" />
|
||||
|
||||
</beans>
|
|
@ -1,25 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
|
||||
|
||||
This program and the accompanying materials are made available under the
|
||||
terms of the Eclipse Public License v. 2.0, which is available at
|
||||
http://www.eclipse.org/legal/epl-2.0.
|
||||
|
||||
This Source Code may also be made available under the following Secondary
|
||||
Licenses when the conditions for such availability set forth in the
|
||||
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
|
||||
version 2 with the GNU Classpath Exception, which is available at
|
||||
https://www.gnu.org/software/classpath/license.html.
|
||||
|
||||
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
||||
-->
|
||||
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
|
||||
<glassfish-web-app error-url="">
|
||||
<class-loader delegate="true"/>
|
||||
<jsp-config>
|
||||
<property name="keepgenerated" value="true">
|
||||
<description>Keep a copy of the generated servlet class' java code.</description>
|
||||
</property>
|
||||
</jsp-config>
|
||||
</glassfish-web-app>
|
|
@ -1,18 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
||||
<hibernate-configuration>
|
||||
<session-factory>
|
||||
<property name="hibernate.dialect">org.hibernate.dialect.DerbyDialect</property>
|
||||
<property name="hibernate.connection.driver_class">org.apache.derby.jdbc.ClientDriver</property>
|
||||
<property name="hibernate.connection.url">jdbc:derby://localhost:1527/sample</property>
|
||||
<property name="hibernate.connection.username">app</property>
|
||||
<property name="hibernate.connection.password">app</property>
|
||||
<mapping resource="DAO/DiscountCode.hbm.xml"/>
|
||||
<mapping resource="DAO/Product.hbm.xml"/>
|
||||
<mapping resource="DAO/PurchaseOrder.hbm.xml"/>
|
||||
<mapping resource="DAO/Manufacturer.hbm.xml"/>
|
||||
<mapping resource="DAO/MicroMarket.hbm.xml"/>
|
||||
<mapping resource="DAO/Customer.hbm.xml"/>
|
||||
<mapping resource="DAO/ProductCode.hbm.xml"/>
|
||||
</session-factory>
|
||||
</hibernate-configuration>
|
|
@ -1,12 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd">
|
||||
<hibernate-reverse-engineering>
|
||||
<schema-selection match-schema="APP"/>
|
||||
<table-filter match-name="MANUFACTURER"/>
|
||||
<table-filter match-name="PRODUCT"/>
|
||||
<table-filter match-name="DISCOUNT_CODE"/>
|
||||
<table-filter match-name="PRODUCT_CODE"/>
|
||||
<table-filter match-name="MICRO_MARKET"/>
|
||||
<table-filter match-name="PURCHASE_ORDER"/>
|
||||
<table-filter match-name="CUSTOMER"/>
|
||||
</hibernate-reverse-engineering>
|
|
@ -1,34 +0,0 @@
|
|||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Achats</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@include file="header.jsp" %>
|
||||
|
||||
|
||||
<H1>Achats du client n°<%=request.getParameter("customerId")%></H1>
|
||||
<table border="1" cellpadding="10">
|
||||
|
||||
|
||||
<c:forEach items="${achats}" var="cli">
|
||||
<TR>
|
||||
<TD>${cli.orderNum}</TD>
|
||||
<TD>${cli.customerId}</TD>
|
||||
<TD>${cli.productId}</TD>
|
||||
<TD>${cli.quantity}</TD>
|
||||
<TD>${cli.shippingCost}</TD>
|
||||
<TD>${cli.salesDate}</TD>
|
||||
<TD>${cli.shippingDate}</TD>
|
||||
<TD>${cli.freightCompany}</TD>
|
||||
</TR>
|
||||
</c:forEach>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,23 +0,0 @@
|
|||
<%--
|
||||
Document : confirm
|
||||
Created on : 5 mars 2018, 22:16:48
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Confirmation</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@include file="header.jsp" %>
|
||||
|
||||
<h1>${error != null ? error : confirm} </h1>
|
||||
<form action="list.htm" method="POST">
|
||||
<input hidden type="text" name="type" value="${type}" />
|
||||
<input type="submit" value="Afficher tous les enregistrements" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -1,18 +0,0 @@
|
|||
<%--
|
||||
Document : deconnexion
|
||||
Created on : 1 juin 2020, 17:09:38
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Deconnexion</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Vous etes deconnecte</h1>
|
||||
<%response.sendRedirect("/Bdd_Spring_HI/");%>
|
||||
</body>
|
||||
</html>
|
|
@ -1,204 +0,0 @@
|
|||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Detail</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@include file="header.jsp" %>
|
||||
|
||||
<form name="detail" method="POST">
|
||||
<c:choose>
|
||||
<c:when test="${type == 'customer'}">
|
||||
<p>
|
||||
<label for="customerId">ID</label>
|
||||
<input type="text" name="customerId" value="${result.customerId}" size="30" id="customerId" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="name">Nom</label>
|
||||
<input type="text" name="name" value="${result.name}" size="30" id="name" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="addressline1">Adresse</label>
|
||||
<input type="text" name="addressline1" value="${result.addressline1}" size="30" id="addressline1" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="addressline2">Adresse 2</label>
|
||||
<input type="text" name="addressline2" value="${result.addressline2}" size="30" id="addressline2" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="city">City</label>
|
||||
<input type="text" name="city" value="${result.city}" size="25" id="city" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="zip">Code Postal</label>
|
||||
<select name="zip" id="zip">
|
||||
<c:forEach items="${cpostaux}" var="cp">
|
||||
<option <c:if test="${cp==result.zip}"> selected </c:if>>${cp}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="state">State</label>
|
||||
<input type="text" name="state" value="${result.state}" size="2" id="state" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="phone">Phone</label>
|
||||
<input type="text" name="phone" value="${result.phone}" size="12" id="phone" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="fax">Fax</label>
|
||||
<input type="text" name="fax" value="${result.fax}" size="12" id="fax" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="email">E-mail</label>
|
||||
<input type="text" name="email" value="${result.email}" size="40" id="email"/>
|
||||
</p>
|
||||
<p>
|
||||
<label for="discountCode">Remise</label>
|
||||
<select name="discountCode" id="discountCode">
|
||||
<c:forEach items="${code}" var="dc">
|
||||
<option <c:if test="${dc.discountCode==result.discountCode}"> selected </c:if> value="${dc.discountCode}">${dc.discountCode} - ${dc.rate}%</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="creditLimit">Credit limit</label>
|
||||
<input type="number" name="creditLimit" value="${result.creditLimit}" id="creditLimit"/>
|
||||
</p>
|
||||
</c:when>
|
||||
<c:when test="${type == 'product'}">
|
||||
<p>
|
||||
<label for="productId">ID</label>
|
||||
<input type="number" name="productId" value="${result.productId}" size="30" id="productId" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="manufacturerId">Manufacturer</label>
|
||||
<select name="manufacturerId" id="manufacturerId">
|
||||
<c:forEach items="${manufacturers}" var="manufacturer">
|
||||
<option <c:if test="${manufacturer.manufacturerId == result.manufacturerId}">selected </c:if>value="${manufacturer.manufacturerId}">${manufacturer.name}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="productCode">Product Code</label>
|
||||
<select name="productCode" id="productCode">
|
||||
<c:forEach items="${productCodes}" var="productCode">
|
||||
<option <c:if test="${productCode.prodCode == result.productCode}">selected </c:if>value="${productCode.prodCode}">${productCode.prodCode} - ${productCode.description}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="purchaseCost">Purchase cost</label>
|
||||
<input type="number" step="0.000000000001" name="purchaseCost" value="${result.purchaseCost}" id="purchaseCost" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="quantityOnHand">Quantity on hand</label>
|
||||
<input type="number" name="quantityOnHand" value="${result.quantityOnHand}" id="quantityOnHand" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="markup">Markup</label>
|
||||
<input type="number" step="0.0001" name="markup" value="${result.markup}" id="markup" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="available">Available</label>
|
||||
<label for="isavailable">TRUE:</label>
|
||||
<input type="radio" name="available" value="TRUE" <c:if test="${result.available == 'TRUE'}">checked</c:if> id="isavailable" />
|
||||
<label for="notavailable">FALSE:</label>
|
||||
<input type="radio" name="available" value="FALSE" <c:if test="${result.available == 'FALSE'}">checked</c:if> id="notavailable" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="description">Description</label>
|
||||
<input type="text" name="description" value="${result.description}" id="description" size="50" />
|
||||
</p>
|
||||
</c:when>
|
||||
<c:when test="${type == 'purchase'}">
|
||||
<p>
|
||||
<label for="orderNum">Order number</label>
|
||||
<input type="number" name="orderNum" value="${result.orderNum}" id="orderNum" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="customerId">Customer</label>
|
||||
<select name="customerId" id="customerId">
|
||||
<c:forEach items="${customers}" var="customer">
|
||||
<option <c:if test="${customer.customerId == result.customerId}">selected </c:if>value="${customer.customerId}">${customer.name}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="productId">Product</label>
|
||||
<select name="productId" id="productId">
|
||||
<c:forEach items="${products}" var="product">
|
||||
<option <c:if test="${product.productId == result.productId}">selected </c:if>value="${product.productId}">${product.description}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="quantity">Quantity</label>
|
||||
<input type="number" name="quantity" value="${result.quantity}" id="quantity" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="shippingCost">Shipping cost</label>
|
||||
<input type="number" name="shippingCost" value="${result.shippingCost}" id="shippingCost" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="salesDate">Sales date</label>
|
||||
<input type="date" name="salesDate" value="${result.salesDate}" id="salesDate" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="shippingDate">Shipping date</label>
|
||||
<input type="date" name="shippingDate" value="${result.shippingDate}" id="shippingDate" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="freightCompany">Freight company</label>
|
||||
<input type="text" name="freightCompany" value="${result.freightCompany}" id="freightCompany" />
|
||||
</p>
|
||||
</c:when>
|
||||
<c:when test="${type == 'discount'}">
|
||||
<p>
|
||||
<label for="discountCode">Discount code</label>
|
||||
<input type="text" name="discountCode" value="${result.discountCode}" id="discountCode" size="1" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="rate">Rate</label>
|
||||
<input type="number" name="rate" value="${result.rate}" id="rate" />
|
||||
</p>
|
||||
</c:when>
|
||||
<c:when test="${type == 'prodCode'}">
|
||||
<p>
|
||||
<label for="prodCode">Product Code</label>
|
||||
<input type="text" name="prodCode" value="${result.prodCode}" id="prodCode" size="2" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="discountCode">Remise</label>
|
||||
<select name="discountCode" id="discountCode">
|
||||
<c:forEach items="${code}" var="dc">
|
||||
<option <c:if test="${dc.discountCode==result.discountCode}"> selected </c:if> value="${dc.discountCode}">${dc.discountCode} - ${dc.rate}%</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="description">Description</label>
|
||||
<input type="text" name="description" value="${result.description}" id="description" size="10" />
|
||||
</p>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
|
||||
<input hidden type="text" name="type" value="${type}" />
|
||||
<c:choose>
|
||||
<c:when test="${save != null}">
|
||||
<input type="submit" value="Add" formaction="save.htm" />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="submit" value="Edit" formaction="update.htm" />
|
||||
<input type="submit" value="Delete" formaction="delete.htm" />
|
||||
<c:if test="${type == 'customer'}">
|
||||
<input type="submit" value="Afficher les achats" formaction="achats.htm" />
|
||||
</c:if>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -1,17 +0,0 @@
|
|||
<%--
|
||||
Document : errlogin
|
||||
Created on : 1 juin 2020, 11:41:58
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>JSP Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Erreur de connexion</h1>
|
||||
</body>
|
||||
</html>
|
|
@ -1,18 +0,0 @@
|
|||
<%--
|
||||
Document : error
|
||||
Created on : 4 mars 2018, 20:54:56
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Erreur</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@include file="header.jsp" %>
|
||||
<h1>${erreur} </h1>
|
||||
</body>
|
||||
</html>
|
|
@ -1,55 +0,0 @@
|
|||
<%--
|
||||
Document : form_inscription
|
||||
Created on : 5 mars 2018, 20:34:28
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Enregistrement</title>
|
||||
</head>
|
||||
<body>
|
||||
Bienvenue ${user.login}
|
||||
|
||||
<form name="inscription" method="POST">
|
||||
<p>
|
||||
<label for="nom">Nom</label>
|
||||
<input type="text" name="nom" value="" size="10" id="nom" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="adresse">Adresse</label>
|
||||
<input type="text" name="adresse" value="" size="10" id="adresse" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="telephone">Téléphone</label>
|
||||
<input type="text" name="telephone" value="" size="10" id="tel" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="email">E-mail</label>
|
||||
<input type="text" name="email" value="" size="10" id="email"/>
|
||||
</p>
|
||||
<p><label for="code_remise">Code Remise</label>
|
||||
<select name="code_remise" id="dc">
|
||||
<c:forEach items="${discount}" var="dc">
|
||||
<option>${dc}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="cp">Code Postal</label>
|
||||
<select name="CP" id="cp">
|
||||
<c:forEach items="${code}" var="cp">
|
||||
<option>${cp}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
|
||||
|
||||
</p>
|
||||
<input type="submit" value="Enregistrer" formaction="save.htm" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -1,25 +0,0 @@
|
|||
<%--
|
||||
Document : heqder
|
||||
Created on : 26 juin 2022, 18:37:00
|
||||
Author : flifloo
|
||||
--%>
|
||||
|
||||
<header>
|
||||
<nav style="display: flex; flex-direction: row; justify-content: space-between">
|
||||
<div style="display: flex; flex-direction: row">
|
||||
<p>Welcome ${user.login}</p>
|
||||
<form name="form" method="POST">
|
||||
<input type="submit" formaction="menu.htm" value="Home" />
|
||||
</form>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: row; justify-content: flex-end">
|
||||
<form name="form" method="POST">
|
||||
<input type="submit" formaction="logout.htm" value="Log out" />
|
||||
|
||||
<input type="text" name="query" />
|
||||
<input hidden type="text" name="type" value="customer" />
|
||||
<input type="submit" formaction="find.htm" value="Search user" />
|
||||
</form>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
|
@ -1,6 +0,0 @@
|
|||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
|
||||
|
||||
<% response.sendRedirect("menu.htm");%>
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
<%--
|
||||
Document : login
|
||||
Created on : 1 juin 2020, 11:40:47
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Connexion</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="POST" action="j_security_check">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Utilisateur :</td>
|
||||
<td><input type="text" name="j_username"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mot de passe :</td>
|
||||
<td><input type="password" name="j_password" ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="submit" value="Entrer" ></td>
|
||||
<td><input type="reset" value="Annuler"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -1,39 +0,0 @@
|
|||
<%--
|
||||
Document : menu
|
||||
Created on : 4 mars 2018, 16:59:09
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Menu</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@include file="header.jsp" %>
|
||||
<h1>choisissez une opération dans la liste suivante</h1>
|
||||
|
||||
<form name="form" action="list.htm" method="POST">
|
||||
<input type="submit" value="Customers" /> <br />
|
||||
<input hidden type="text" name="type" value="customer" />
|
||||
</form>
|
||||
<form name="form" action="list.htm" method="POST">
|
||||
<input type="submit" value="Products" /> <br />
|
||||
<input hidden type="text" name="type" value="product" />
|
||||
</form>
|
||||
<form name="form" action="list.htm" method="POST">
|
||||
<input type="submit" value="Purchases" /> <br />
|
||||
<input hidden type="text" name="type" value="purchase" />
|
||||
</form>
|
||||
<form name="form" action="list.htm" method="POST">
|
||||
<input type="submit" value="Discount codes" /> <br />
|
||||
<input hidden type="text" name="type" value="discount" />
|
||||
</form>
|
||||
<form name="form" action="list.htm" method="POST">
|
||||
<input type="submit" value="Products Code" /> <br />
|
||||
<input hidden type="text" name="type" value="prodCode" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -1,26 +0,0 @@
|
|||
<%--
|
||||
Document : recherche
|
||||
Created on : 7 juin 2019, 11:52:07
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Recherche</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@include file="header.jsp" %>
|
||||
|
||||
<form name="recherche" action="find.htm" method="POST">
|
||||
<p>
|
||||
<label for="nom">Nom de l'entreprise</label>
|
||||
<input type="text" name="nom" size="30" id="nom" />
|
||||
</p>
|
||||
<input type="submit" value="rechercher" />
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,65 +0,0 @@
|
|||
<%--
|
||||
Document : resultat
|
||||
Created on : 4 mars 2018, 20:29:48
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Resultat</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@include file="header.jsp" %>
|
||||
|
||||
<c:choose>
|
||||
<c:when test="${error != null}">
|
||||
<h1>${error}</h1>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<form name="Add" action="formAdd.htm" method="POST">
|
||||
<input hidden type="text" name="type" value="${type}"/>
|
||||
<input type=submit value="Add" />
|
||||
</form>
|
||||
<table border="1" cellpadding="10">
|
||||
<TR>
|
||||
<c:forEach items="${colonnes}" var="col">
|
||||
<TD>${col}</TD>
|
||||
</c:forEach>
|
||||
</TR>
|
||||
|
||||
<c:forEach items="${results}" var="values" varStatus="row" >
|
||||
<TR>
|
||||
<c:forEach items="${values}" var="v" varStatus="vStatus" >
|
||||
<c:choose>
|
||||
<c:when test="${relation != null && relation.get(colonnes[vStatus.index]) != null}">
|
||||
<TD>
|
||||
<form name="Detail" action="detail.htm" method="POST">
|
||||
<input hidden type="text" name="type" value="${relation.get(colonnes[vStatus.index])}"/>
|
||||
<input hidden name="num" value="${v}"/>
|
||||
<input type=submit value="${v}" />
|
||||
</form>
|
||||
</TD>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<TD>${v}</TD>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</c:forEach>
|
||||
<TD>
|
||||
<form name="Detail" action="detail.htm" method="POST">
|
||||
<input hidden type="text" name="type" value="${type}"/>
|
||||
<input hidden name="num" value="${values[0]}"/>
|
||||
<input type=submit value="Détail" />
|
||||
</form>
|
||||
</TD>
|
||||
</TR>
|
||||
</c:forEach>
|
||||
</table>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</body>
|
||||
</html>
|
Binary file not shown.
|
@ -1,51 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
|
||||
<context-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>classpath:applicationContext.xml</param-value>
|
||||
</context-param>
|
||||
<listener>
|
||||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
||||
</listener>
|
||||
<servlet>
|
||||
<servlet-name>dispatcher</servlet-name>
|
||||
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
||||
<load-on-startup>2</load-on-startup>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>dispatcher</servlet-name>
|
||||
<url-pattern>*.htm</url-pattern>
|
||||
</servlet-mapping>
|
||||
<session-config>
|
||||
<session-timeout>
|
||||
30
|
||||
</session-timeout>
|
||||
</session-config>
|
||||
<welcome-file-list>
|
||||
<welcome-file>redirect.jsp</welcome-file>
|
||||
</welcome-file-list>
|
||||
<security-constraint>
|
||||
<display-name>Constraint1</display-name>
|
||||
<web-resource-collection>
|
||||
<web-resource-name>Application</web-resource-name>
|
||||
<description/>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</web-resource-collection>
|
||||
<auth-constraint>
|
||||
<description/>
|
||||
<role-name>user</role-name>
|
||||
</auth-constraint>
|
||||
</security-constraint>
|
||||
<login-config>
|
||||
<auth-method>FORM</auth-method>
|
||||
<realm-name>file</realm-name>
|
||||
<form-login-config>
|
||||
<form-login-page>/WEB-INF/jsp/login.jsp</form-login-page>
|
||||
<form-error-page>/WEB-INF/jsp/errlogin.jsp</form-error-page>
|
||||
</form-login-config>
|
||||
</login-config>
|
||||
<security-role>
|
||||
<description/>
|
||||
<role-name>user</role-name>
|
||||
</security-role>
|
||||
</web-app>
|
|
@ -1,40 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:p="http://www.springframework.org/schema/p"
|
||||
xmlns:aop="http://www.springframework.org/schema/aop"
|
||||
xmlns:tx="http://www.springframework.org/schema/tx"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
||||
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
|
||||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd">
|
||||
|
||||
<bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"/>
|
||||
|
||||
<!--
|
||||
Most controllers will use the ControllerClassNameHandlerMapping above, but
|
||||
for the index controller we are using ParameterizableViewController, so we must
|
||||
define an explicit mapping for it.
|
||||
-->
|
||||
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
|
||||
<property name="mappings">
|
||||
<props>
|
||||
<prop key="index.htm">indexController</prop>
|
||||
<prop key="*.htm">BddController</prop>
|
||||
</props>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="viewResolver"
|
||||
class="org.springframework.web.servlet.view.InternalResourceViewResolver"
|
||||
p:prefix="/WEB-INF/jsp/"
|
||||
p:suffix=".jsp" />
|
||||
|
||||
<!--
|
||||
The index controller.
|
||||
-->
|
||||
<bean name="indexController"
|
||||
class="org.springframework.web.servlet.mvc.ParameterizableViewController"
|
||||
p:viewName="index"/>
|
||||
<bean name="BddController" class="controller.BddController" />
|
||||
|
||||
</beans>
|
|
@ -1,25 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
|
||||
|
||||
This program and the accompanying materials are made available under the
|
||||
terms of the Eclipse Public License v. 2.0, which is available at
|
||||
http://www.eclipse.org/legal/epl-2.0.
|
||||
|
||||
This Source Code may also be made available under the following Secondary
|
||||
Licenses when the conditions for such availability set forth in the
|
||||
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
|
||||
version 2 with the GNU Classpath Exception, which is available at
|
||||
https://www.gnu.org/software/classpath/license.html.
|
||||
|
||||
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
||||
-->
|
||||
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
|
||||
<glassfish-web-app error-url="">
|
||||
<class-loader delegate="true"/>
|
||||
<jsp-config>
|
||||
<property name="keepgenerated" value="true">
|
||||
<description>Keep a copy of the generated servlet class' java code.</description>
|
||||
</property>
|
||||
</jsp-config>
|
||||
</glassfish-web-app>
|
|
@ -1,34 +0,0 @@
|
|||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Achats</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@include file="header.jsp" %>
|
||||
|
||||
|
||||
<H1>Achats du client n°<%=request.getParameter("customerId")%></H1>
|
||||
<table border="1" cellpadding="10">
|
||||
|
||||
|
||||
<c:forEach items="${achats}" var="cli">
|
||||
<TR>
|
||||
<TD>${cli.orderNum}</TD>
|
||||
<TD>${cli.customerId}</TD>
|
||||
<TD>${cli.productId}</TD>
|
||||
<TD>${cli.quantity}</TD>
|
||||
<TD>${cli.shippingCost}</TD>
|
||||
<TD>${cli.salesDate}</TD>
|
||||
<TD>${cli.shippingDate}</TD>
|
||||
<TD>${cli.freightCompany}</TD>
|
||||
</TR>
|
||||
</c:forEach>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,23 +0,0 @@
|
|||
<%--
|
||||
Document : confirm
|
||||
Created on : 5 mars 2018, 22:16:48
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Confirmation</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@include file="header.jsp" %>
|
||||
|
||||
<h1>${error != null ? error : confirm} </h1>
|
||||
<form action="list.htm" method="POST">
|
||||
<input hidden type="text" name="type" value="${type}" />
|
||||
<input type="submit" value="Afficher tous les enregistrements" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -1,204 +0,0 @@
|
|||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Detail</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@include file="header.jsp" %>
|
||||
|
||||
<form name="detail" method="POST">
|
||||
<c:choose>
|
||||
<c:when test="${type == 'customer'}">
|
||||
<p>
|
||||
<label for="customerId">ID</label>
|
||||
<input type="text" name="customerId" value="${result.customerId}" size="30" id="customerId" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="name">Nom</label>
|
||||
<input type="text" name="name" value="${result.name}" size="30" id="name" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="addressline1">Adresse</label>
|
||||
<input type="text" name="addressline1" value="${result.addressline1}" size="30" id="addressline1" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="addressline2">Adresse 2</label>
|
||||
<input type="text" name="addressline2" value="${result.addressline2}" size="30" id="addressline2" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="city">City</label>
|
||||
<input type="text" name="city" value="${result.city}" size="25" id="city" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="zip">Code Postal</label>
|
||||
<select name="zip" id="zip">
|
||||
<c:forEach items="${cpostaux}" var="cp">
|
||||
<option <c:if test="${cp==result.zip}"> selected </c:if>>${cp}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="state">State</label>
|
||||
<input type="text" name="state" value="${result.state}" size="2" id="state" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="phone">Phone</label>
|
||||
<input type="text" name="phone" value="${result.phone}" size="12" id="phone" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="fax">Fax</label>
|
||||
<input type="text" name="fax" value="${result.fax}" size="12" id="fax" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="email">E-mail</label>
|
||||
<input type="text" name="email" value="${result.email}" size="40" id="email"/>
|
||||
</p>
|
||||
<p>
|
||||
<label for="discountCode">Remise</label>
|
||||
<select name="discountCode" id="discountCode">
|
||||
<c:forEach items="${code}" var="dc">
|
||||
<option <c:if test="${dc.discountCode==result.discountCode}"> selected </c:if> value="${dc.discountCode}">${dc.discountCode} - ${dc.rate}%</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="creditLimit">Credit limit</label>
|
||||
<input type="number" name="creditLimit" value="${result.creditLimit}" id="creditLimit"/>
|
||||
</p>
|
||||
</c:when>
|
||||
<c:when test="${type == 'product'}">
|
||||
<p>
|
||||
<label for="productId">ID</label>
|
||||
<input type="number" name="productId" value="${result.productId}" size="30" id="productId" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="manufacturerId">Manufacturer</label>
|
||||
<select name="manufacturerId" id="manufacturerId">
|
||||
<c:forEach items="${manufacturers}" var="manufacturer">
|
||||
<option <c:if test="${manufacturer.manufacturerId == result.manufacturerId}">selected </c:if>value="${manufacturer.manufacturerId}">${manufacturer.name}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="productCode">Product Code</label>
|
||||
<select name="productCode" id="productCode">
|
||||
<c:forEach items="${productCodes}" var="productCode">
|
||||
<option <c:if test="${productCode.prodCode == result.productCode}">selected </c:if>value="${productCode.prodCode}">${productCode.prodCode} - ${productCode.description}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="purchaseCost">Purchase cost</label>
|
||||
<input type="number" step="0.000000000001" name="purchaseCost" value="${result.purchaseCost}" id="purchaseCost" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="quantityOnHand">Quantity on hand</label>
|
||||
<input type="number" name="quantityOnHand" value="${result.quantityOnHand}" id="quantityOnHand" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="markup">Markup</label>
|
||||
<input type="number" step="0.0001" name="markup" value="${result.markup}" id="markup" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="available">Available</label>
|
||||
<label for="isavailable">TRUE:</label>
|
||||
<input type="radio" name="available" value="TRUE" <c:if test="${result.available == 'TRUE'}">checked</c:if> id="isavailable" />
|
||||
<label for="notavailable">FALSE:</label>
|
||||
<input type="radio" name="available" value="FALSE" <c:if test="${result.available == 'FALSE'}">checked</c:if> id="notavailable" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="description">Description</label>
|
||||
<input type="text" name="description" value="${result.description}" id="description" size="50" />
|
||||
</p>
|
||||
</c:when>
|
||||
<c:when test="${type == 'purchase'}">
|
||||
<p>
|
||||
<label for="orderNum">Order number</label>
|
||||
<input type="number" name="orderNum" value="${result.orderNum}" id="orderNum" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="customerId">Customer</label>
|
||||
<select name="customerId" id="customerId">
|
||||
<c:forEach items="${customers}" var="customer">
|
||||
<option <c:if test="${customer.customerId == result.customerId}">selected </c:if>value="${customer.customerId}">${customer.name}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="productId">Product</label>
|
||||
<select name="productId" id="productId">
|
||||
<c:forEach items="${products}" var="product">
|
||||
<option <c:if test="${product.productId == result.productId}">selected </c:if>value="${product.productId}">${product.description}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="quantity">Quantity</label>
|
||||
<input type="number" name="quantity" value="${result.quantity}" id="quantity" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="shippingCost">Shipping cost</label>
|
||||
<input type="number" name="shippingCost" value="${result.shippingCost}" id="shippingCost" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="salesDate">Sales date</label>
|
||||
<input type="date" name="salesDate" value="${result.salesDate}" id="salesDate" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="shippingDate">Shipping date</label>
|
||||
<input type="date" name="shippingDate" value="${result.shippingDate}" id="shippingDate" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="freightCompany">Freight company</label>
|
||||
<input type="text" name="freightCompany" value="${result.freightCompany}" id="freightCompany" />
|
||||
</p>
|
||||
</c:when>
|
||||
<c:when test="${type == 'discount'}">
|
||||
<p>
|
||||
<label for="discountCode">Discount code</label>
|
||||
<input type="text" name="discountCode" value="${result.discountCode}" id="discountCode" size="1" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="rate">Rate</label>
|
||||
<input type="number" name="rate" value="${result.rate}" id="rate" />
|
||||
</p>
|
||||
</c:when>
|
||||
<c:when test="${type == 'prodCode'}">
|
||||
<p>
|
||||
<label for="prodCode">Product Code</label>
|
||||
<input type="text" name="prodCode" value="${result.prodCode}" id="prodCode" size="2" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="discountCode">Remise</label>
|
||||
<select name="discountCode" id="discountCode">
|
||||
<c:forEach items="${code}" var="dc">
|
||||
<option <c:if test="${dc.discountCode==result.discountCode}"> selected </c:if> value="${dc.discountCode}">${dc.discountCode} - ${dc.rate}%</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="description">Description</label>
|
||||
<input type="text" name="description" value="${result.description}" id="description" size="10" />
|
||||
</p>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
|
||||
<input hidden type="text" name="type" value="${type}" />
|
||||
<c:choose>
|
||||
<c:when test="${save != null}">
|
||||
<input type="submit" value="Add" formaction="save.htm" />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="submit" value="Edit" formaction="update.htm" />
|
||||
<input type="submit" value="Delete" formaction="delete.htm" />
|
||||
<c:if test="${type == 'customer'}">
|
||||
<input type="submit" value="Afficher les achats" formaction="achats.htm" />
|
||||
</c:if>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -1,17 +0,0 @@
|
|||
<%--
|
||||
Document : errlogin
|
||||
Created on : 1 juin 2020, 11:41:58
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>JSP Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Erreur de connexion</h1>
|
||||
</body>
|
||||
</html>
|
|
@ -1,55 +0,0 @@
|
|||
<%--
|
||||
Document : form_inscription
|
||||
Created on : 5 mars 2018, 20:34:28
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Enregistrement</title>
|
||||
</head>
|
||||
<body>
|
||||
Bienvenue ${user.login}
|
||||
|
||||
<form name="inscription" method="POST">
|
||||
<p>
|
||||
<label for="nom">Nom</label>
|
||||
<input type="text" name="nom" value="" size="10" id="nom" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="adresse">Adresse</label>
|
||||
<input type="text" name="adresse" value="" size="10" id="adresse" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="telephone">Téléphone</label>
|
||||
<input type="text" name="telephone" value="" size="10" id="tel" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="email">E-mail</label>
|
||||
<input type="text" name="email" value="" size="10" id="email"/>
|
||||
</p>
|
||||
<p><label for="code_remise">Code Remise</label>
|
||||
<select name="code_remise" id="dc">
|
||||
<c:forEach items="${discount}" var="dc">
|
||||
<option>${dc}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="cp">Code Postal</label>
|
||||
<select name="CP" id="cp">
|
||||
<c:forEach items="${code}" var="cp">
|
||||
<option>${cp}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
|
||||
|
||||
</p>
|
||||
<input type="submit" value="Enregistrer" formaction="save.htm" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -1,25 +0,0 @@
|
|||
<%--
|
||||
Document : heqder
|
||||
Created on : 26 juin 2022, 18:37:00
|
||||
Author : flifloo
|
||||
--%>
|
||||
|
||||
<header>
|
||||
<nav style="display: flex; flex-direction: row; justify-content: space-between">
|
||||
<div style="display: flex; flex-direction: row">
|
||||
<p>Welcome ${user.login}</p>
|
||||
<form name="form" method="POST">
|
||||
<input type="submit" formaction="menu.htm" value="Home" />
|
||||
</form>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: row; justify-content: flex-end">
|
||||
<form name="form" method="POST">
|
||||
<input type="submit" formaction="logout.htm" value="Log out" />
|
||||
|
||||
<input type="text" name="query" />
|
||||
<input hidden type="text" name="type" value="customer" />
|
||||
<input type="submit" formaction="find.htm" value="Search user" />
|
||||
</form>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
|
@ -1,6 +0,0 @@
|
|||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
|
||||
|
||||
<% response.sendRedirect("menu.htm");%>
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
<%--
|
||||
Document : login
|
||||
Created on : 1 juin 2020, 11:40:47
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Connexion</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="POST" action="j_security_check">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Utilisateur :</td>
|
||||
<td><input type="text" name="j_username"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mot de passe :</td>
|
||||
<td><input type="password" name="j_password" ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="submit" value="Entrer" ></td>
|
||||
<td><input type="reset" value="Annuler"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -1,39 +0,0 @@
|
|||
<%--
|
||||
Document : menu
|
||||
Created on : 4 mars 2018, 16:59:09
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Menu</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@include file="header.jsp" %>
|
||||
<h1>choisissez une opération dans la liste suivante</h1>
|
||||
|
||||
<form name="form" action="list.htm" method="POST">
|
||||
<input type="submit" value="Customers" /> <br />
|
||||
<input hidden type="text" name="type" value="customer" />
|
||||
</form>
|
||||
<form name="form" action="list.htm" method="POST">
|
||||
<input type="submit" value="Products" /> <br />
|
||||
<input hidden type="text" name="type" value="product" />
|
||||
</form>
|
||||
<form name="form" action="list.htm" method="POST">
|
||||
<input type="submit" value="Purchases" /> <br />
|
||||
<input hidden type="text" name="type" value="purchase" />
|
||||
</form>
|
||||
<form name="form" action="list.htm" method="POST">
|
||||
<input type="submit" value="Discount codes" /> <br />
|
||||
<input hidden type="text" name="type" value="discount" />
|
||||
</form>
|
||||
<form name="form" action="list.htm" method="POST">
|
||||
<input type="submit" value="Products Code" /> <br />
|
||||
<input hidden type="text" name="type" value="prodCode" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -1,26 +0,0 @@
|
|||
<%--
|
||||
Document : recherche
|
||||
Created on : 7 juin 2019, 11:52:07
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Recherche</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@include file="header.jsp" %>
|
||||
|
||||
<form name="recherche" action="find.htm" method="POST">
|
||||
<p>
|
||||
<label for="nom">Nom de l'entreprise</label>
|
||||
<input type="text" name="nom" size="30" id="nom" />
|
||||
</p>
|
||||
<input type="submit" value="rechercher" />
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,65 +0,0 @@
|
|||
<%--
|
||||
Document : resultat
|
||||
Created on : 4 mars 2018, 20:29:48
|
||||
Author : faycal
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Resultat</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@include file="header.jsp" %>
|
||||
|
||||
<c:choose>
|
||||
<c:when test="${error != null}">
|
||||
<h1>${error}</h1>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<form name="Add" action="formAdd.htm" method="POST">
|
||||
<input hidden type="text" name="type" value="${type}"/>
|
||||
<input type=submit value="Add" />
|
||||
</form>
|
||||
<table border="1" cellpadding="10">
|
||||
<TR>
|
||||
<c:forEach items="${colonnes}" var="col">
|
||||
<TD>${col}</TD>
|
||||
</c:forEach>
|
||||
</TR>
|
||||
|
||||
<c:forEach items="${results}" var="values" varStatus="row" >
|
||||
<TR>
|
||||
<c:forEach items="${values}" var="v" varStatus="vStatus" >
|
||||
<c:choose>
|
||||
<c:when test="${relation != null && relation.get(colonnes[vStatus.index]) != null}">
|
||||
<TD>
|
||||
<form name="Detail" action="detail.htm" method="POST">
|
||||
<input hidden type="text" name="type" value="${relation.get(colonnes[vStatus.index])}"/>
|
||||
<input hidden name="num" value="${v}"/>
|
||||
<input type=submit value="${v}" />
|
||||
</form>
|
||||
</TD>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<TD>${v}</TD>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</c:forEach>
|
||||
<TD>
|
||||
<form name="Detail" action="detail.htm" method="POST">
|
||||
<input hidden type="text" name="type" value="${type}"/>
|
||||
<input hidden name="num" value="${values[0]}"/>
|
||||
<input type=submit value="Détail" />
|
||||
</form>
|
||||
</TD>
|
||||
</TR>
|
||||
</c:forEach>
|
||||
</table>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</body>
|
||||
</html>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,51 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
|
||||
<context-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>classpath:applicationContext.xml</param-value>
|
||||
</context-param>
|
||||
<listener>
|
||||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
||||
</listener>
|
||||
<servlet>
|
||||
<servlet-name>dispatcher</servlet-name>
|
||||
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
||||
<load-on-startup>2</load-on-startup>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>dispatcher</servlet-name>
|
||||
<url-pattern>*.htm</url-pattern>
|
||||
</servlet-mapping>
|
||||
<session-config>
|
||||
<session-timeout>
|
||||
30
|
||||
</session-timeout>
|
||||
</session-config>
|
||||
<welcome-file-list>
|
||||
<welcome-file>redirect.jsp</welcome-file>
|
||||
</welcome-file-list>
|
||||
<security-constraint>
|
||||
<display-name>Constraint1</display-name>
|
||||
<web-resource-collection>
|
||||
<web-resource-name>Application</web-resource-name>
|
||||
<description/>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</web-resource-collection>
|
||||
<auth-constraint>
|
||||
<description/>
|
||||
<role-name>user</role-name>
|
||||
</auth-constraint>
|
||||
</security-constraint>
|
||||
<login-config>
|
||||
<auth-method>FORM</auth-method>
|
||||
<realm-name>file</realm-name>
|
||||
<form-login-config>
|
||||
<form-login-page>/WEB-INF/jsp/login.jsp</form-login-page>
|
||||
<form-error-page>/WEB-INF/jsp/errlogin.jsp</form-error-page>
|
||||
</form-login-config>
|
||||
</login-config>
|
||||
<security-role>
|
||||
<description/>
|
||||
<role-name>user</role-name>
|
||||
</security-role>
|
||||
</web-app>
|
|
@ -1,25 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
|
||||
<!--
|
||||
Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
|
||||
|
||||
This program and the accompanying materials are made available under the
|
||||
terms of the Eclipse Public License v. 2.0, which is available at
|
||||
http://www.eclipse.org/legal/epl-2.0.
|
||||
|
||||
This Source Code may also be made available under the following Secondary
|
||||
Licenses when the conditions for such availability set forth in the
|
||||
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
|
||||
version 2 with the GNU Classpath Exception, which is available at
|
||||
https://www.gnu.org/software/classpath/license.html.
|
||||
|
||||
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
||||
-->
|
||||
<glassfish-web-app error-url="">
|
||||
<class-loader delegate="true"/>
|
||||
<jsp-config>
|
||||
<property name="keepgenerated" value="true">
|
||||
<description>Keep a copy of the generated servlet class' java code.</description>
|
||||
</property>
|
||||
</jsp-config>
|
||||
</glassfish-web-app>
|
|
@ -1,9 +0,0 @@
|
|||
<%--
|
||||
Views should be stored under the WEB-INF folder so that
|
||||
they are not accessible except through controller process.
|
||||
|
||||
This JSP is here to provide a redirect to the dispatcher
|
||||
servlet but should be the only JSP outside of WEB-INF.
|
||||
--%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<% response.sendRedirect("index.htm"); %>
|
BIN
dist/Bdd_Spring_HI.war
vendored
Normal file
BIN
dist/Bdd_Spring_HI.war
vendored
Normal file
Binary file not shown.
Reference in a new issue