1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/struts-layout.tld" prefix="layout" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ page import="org.etafat.gnoncon.dao.DaoNonconformite,org.etafat.util.*,javax.servlet.http.*,java.util.ArrayList" %>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!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=UTF-8">
<title>JSP Page</title>
<layout:skin includeScript="true"/>
</head>
<body>
<h1>JSP Page</h1>
<% DaoNonconformite noncon=new DaoNonconformite();
ArrayList Liste = new ArrayList();
Liste=noncon.afNonconformite();
session.setAttribute("Liste",Liste);
%>
<%=session.getAttribute("idana")%>
<layout:panel styleClass="FORM" key="LISTE DES NON CONFORMITES" >
<layout:form action="essai">
<layout:textarea property="nom"key="" />
<logic:present name="Liste">
<layout:pager maxPageItems="5">
<layout:collection name="Liste" styleClass="FORM" indexId="noncon" selectType="radio" selectName="selects" selectProperty="champ2">
<layout:collectionItem title="id" property="champ2"/>
<layout:collectionItem title="libellé" property="champ1"/>
<layout:collectionItem title="Origine" property="champ3"/>
<layout:collectionItem title="Date" property="champ4"/>
</layout:collection>
</layout:pager>
</logic:present>
<layout:row styleClass="">
<layout:submit property="modifier" value="modifier"/>
<layout:submit property="ajoutAnalyse" value="Ajouter une Analyse"/>
</layout:row>
</layout:form>
</layout:panel>
</body>
</html> |
Partager