IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Taglibs Java Discussion :

Nothing found to display.


Sujet :

Taglibs Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé Avatar de kodo
    Profil pro
    Chef de projet technique
    Inscrit en
    Mars 2006
    Messages
    300
    Détails du profil
    Informations personnelles :
    Localisation : Maroc

    Informations professionnelles :
    Activité : Chef de projet technique

    Informations forums :
    Inscription : Mars 2006
    Messages : 300
    Par défaut Nothing found to display.
    Bonjour
    jé choisi comme intitulé de mon sujet, le message qui me sort lorsque je deploie une petite application J2EE de test des tags display :
    voila ma page 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
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
     
    <%@ page language="java" pageEncoding="UTF-8"%>
    <%@ page import="java.util.Vector" %>
    <%@ page import="packTags.User" %>
    <%@ page import="java.util.ArrayList" %>
     
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>
    <%@ taglib uri="/WEB-INF/struts-layout.tld" prefix="layout"%>
    <%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html:html locale="true">
      <head>
        <html:base />
     
        <title>MyJsp.jsp</title>
     
        <meta http-equiv="pragma" content="no-cache">
        <meta http-equiv="cache-control" content="no-cache">
        <meta http-equiv="expires" content="0">    
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
        <meta http-equiv="description" content="This is my page">
      </head>
     
      <body>
        This a struts page. <hr>
        <%
        	ArrayList a=new ArrayList();
        	//////////////////////
        	User user1=new User();
        	user1.setNom("aaa");
        	user1.setAge(18);
        	//////////////////////
        	User user2=new User();
        	user2.setNom("bbb");
        	user2.setAge(23);
        	/////////////////////////
        	a.add(user1);
        	a.add(user2);
        	pageContext.setAttribute("users",a);
        %>
     
        <display:table name="users" class="isis">
        	<display:column property="nom" title="Nom"/>
        	<display:column property="age" title="Age"/>    	
        </display:table>
     
      </body>
    </html:html>
    -------------------
    et voila ma classe User:
    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
     
    package packTags;
     
    public class User {
    	private String nom;
    	private int age;
    	public void setNom(String n){
    		nom=n;
    	}
    	public void setAge(int a){
    		age=a;
    	}
    	public int getAge(){
    		return age;
    	}
    	public String getNom(){
    		return nom;
    	}
    }
    ----------------------------------------
    Normalement ça doit m'afficher une table ds mapage JSP
    mé il m'affiche au lieu du table le message Nothing found to display.

  2. #2
    Membre éclairé Avatar de kodo
    Profil pro
    Chef de projet technique
    Inscrit en
    Mars 2006
    Messages
    300
    Détails du profil
    Informations personnelles :
    Localisation : Maroc

    Informations professionnelles :
    Activité : Chef de projet technique

    Informations forums :
    Inscription : Mars 2006
    Messages : 300
    Par défaut
    voila ce qui m'affiche sur la console :
    ----------------------------------
    21 août 2006 18:06:14 org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    21 août 2006 18:06:14 org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    21 août 2006 18:06:14 org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    21 août 2006 18:06:14 org.displaytag.export.ExportViewFactory <init>
    INFO: Initializing ExportViewFactory with type={csv,excel,xml,pdf}
    21 août 2006 18:06:15 org.displaytag.export.ExportViewFactory registerExportView
    ATTENTION: Unable to instantiate class for pdf export. org.displaytag.export.PdfView was found, but required libraries are missing: com/lowagie/text/Element
    21 août 2006 18:06:15 org.displaytag.properties.TableProperties getLocaleResolverInstance
    INFO: No LocaleResolver configured.

  3. #3
    Membre éclairé Avatar de kodo
    Profil pro
    Chef de projet technique
    Inscrit en
    Mars 2006
    Messages
    300
    Détails du profil
    Informations personnelles :
    Localisation : Maroc

    Informations professionnelles :
    Activité : Chef de projet technique

    Informations forums :
    Inscription : Mars 2006
    Messages : 300
    Par défaut
    et sachant que jé placé :
    • diplaytag1-1.tld ds le repertoire web-inf
    • le displaytag1-1.jar ds le repertoire lib

  4. #4
    Membre éprouvé
    Avatar de Janitrix
    Inscrit en
    Octobre 2005
    Messages
    3 391
    Détails du profil
    Informations forums :
    Inscription : Octobre 2005
    Messages : 3 391
    Par défaut
    Utilise la balise code parce que la, c'est illisible
    [edit] Merci zekey

  5. #5
    Membre éclairé Avatar de kodo
    Profil pro
    Chef de projet technique
    Inscrit en
    Mars 2006
    Messages
    300
    Détails du profil
    Informations personnelles :
    Localisation : Maroc

    Informations professionnelles :
    Activité : Chef de projet technique

    Informations forums :
    Inscription : Mars 2006
    Messages : 300
    Par défaut
    Merci beaucoup, et je m'excuse pour le derangement.

  6. #6
    Membre Expert
    Avatar de fabszn
    Homme Profil pro
    Développeur Java
    Inscrit en
    Mars 2002
    Messages
    974
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Développeur Java

    Informations forums :
    Inscription : Mars 2002
    Messages : 974
    Par défaut
    Hello,

    Est ce que dans le répertoire lib tu as bien mis aussi les libs suivantes? :

    commons-logging
    commons-lang
    commons-collections
    commons-beanutils
    log4j
    itext (optional, for pdf/rtf export)

Discussions similaires

  1. Réponses: 4
    Dernier message: 03/11/2010, 09h32
  2. [DisplayTag] Problème:Nothing found to display
    Par snoox87 dans le forum Taglibs
    Réponses: 1
    Dernier message: 28/08/2009, 15h03
  3. Réponses: 5
    Dernier message: 13/05/2009, 19h13
  4. [DisplayTag] "Nothing found to display" et pourtant !
    Par TraPpeur dans le forum Taglibs
    Réponses: 6
    Dernier message: 29/10/2008, 14h20
  5. Component not found
    Par Pm dans le forum XMLRAD
    Réponses: 2
    Dernier message: 28/01/2003, 14h40

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo