bonjour tout le monde,
aprés multitude recherche sur le net je ne comprend pas pourquoi ça ne marche pas.
le résultat sur ma page web m'affiche "Nothing found to display".
dans la console de éclipse il m'affiche :
voila mon code pour vous aider :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 INFO [ExportViewFactory] Initializing ExportViewFactory with type={csv,excel,xml,pdf,rtf} WARN [ExportViewFactory] Unable to instantiate class for pdf export. org.displaytag.export.DefaultPdfExportView was found, but required libraries are missing: com/lowagie/text/Element WARN [ExportViewFactory] Unable to instantiate class for rtf export. org.displaytag.export.DefaultRtfExportView was found, but required libraries are missing: com/lowagie/text/Element INFO [TableProperties] No LocaleResolver configured.
User.java :
User.jsp :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 import java.util.ArrayList; public class User { String fac; String rte; String lot; String prio; String qty; public User() {} public User(String fac, String rte,String lot,String prio,String qty) { this.fac= fac; this.rte = rte; this.lot = lot; this.prio = prio; this.qty = qty; } public ArrayList<User> arrayList() { ArrayList<User> userList = new ArrayList<User>(); userList.add(new User("xxxx", "yyyy", "zzzz", "eeee","ttt")); userList.add(new User("xxxx", "yyyy", "zzzz", "eeee","ttt")); userList.add(new User("xxxx", "yyyy", "zzzz", "eeee","ttt")); userList.add(new User("xxxx", "yyyy", "zzzz", "eeee","ttt")); userList.add(new User("xxxx", "yyyy", "zzzz", "eeee","ttt")); userList.add(new User("xxxx", "yyyy", "zzzz", "eeee","ttt")); userList.add(new User("xxxx", "yyyy", "zzzz", "eeee","ttt")); return userList; } //getter et setter
lib implémenter :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 <%@ taglib uri="http://displaytag.sf.net" prefix="display" %> <%@ page import = "com.xxx.*" %> <html> <head> <title>exo displaytag</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../css/displayTag.css" type="text/css"/> </head> <body> <% String fac=""; String rte=""; String lot=""; String prio=""; String qty=""; //declare mon constructeur ou ma classe User user = new User(fac,rte,lot,prio,qty); user.arrayList(); %> <display:table name="userList" class="User" id="userList" defaultsort="2" defaultorder="descending" export="true" > <display:column property="facility" title="FAC" sortable="true"/> <display:column property="rte_name" title="ROUTE" sortable="true" /> <display:column property="lot_nmb" title="LOT" sortable="true"/> <display:column property="prio" title="PRIORITY" sortable="true" /> <display:column property="qty" title="QUANTITY" sortable="true" /> </display:table> </body> </html>
commons-beanutils-1.7.0.jar
commons-chain-1.2.jar
commons-collections-3.1.jar
commons-lang.jar
displaytag-1.2.jar
displaytag-examples-1.2-sources.jar
displaytag-export-poi-1.2.jar
jcommon-1.0.14.jar
displayTag.tld est à la racine de mon WEB_INF
donc je ne sais pas d'ou ça peut venir si quelqu'un peut m'aider
Partager