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

Struts 1 Java Discussion :

pb avec un tiles ?


Sujet :

Struts 1 Java

  1. #1
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Par défaut pb avec un tiles ?
    Bonjour,

    J'ai une page jsp (ma home page). qui inclut plusieurs autres pages de la manière suivante :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    <tiles:insert name="x1" flush="true" />	
    <tiles:insert name="x2" flush="true" />
    <tiles:insert name="x3" flush="true" />
    <tiles:insert name="x4" flush="true" />
    Mon pb c'est que quand je charge ma page, parfois elle se charge en entier et parfois non,
    les deux premiers tiles sont chargés mais pas le troisième et le quatrième.

    en chargeant ma page sur ma plateforme de test le probleme ne se produit jamais
    ou bien s'il se produit alors juste au premier chargement de la page apres compilation.

    en chargeant ma page sur mes serveurs de prod, le pb se reproduit tout le temps.

    Je me demandait si ce n'est pas liée au fait que ma page est lourde (J'avoue qu'elle est unpeu chargée d'images et de flashs).
    (mais lorqu'une page est lourde normalement soit elle est chargée en entier soit on a un time out non ? je me trompe peut être)
    mais si c'est vraiment le cas, pourquoi ça arrive sur un environnement et pas l'autre.

    Quelqu'un aura une idée de ce que ça peut être.

    Merci d'avance pour votre aide.

  2. #2
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    J'ai déjà eu ce symptôme avec les tiles mais je ne me souviens plus ce qui le provoquait.

    As-tu essayé avec flush="false" ?

    Peux-tu montrer le code du 3ème tiles ?

  3. #3
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Par défaut
    oui j'ai essayé avec le flush=false mais même soucis.

  4. #4
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Par défaut
    voici le code la page qui contient le tiles
    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
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    <div id="content">
    	<table width="983" border="0" cellspacing="0" cellpadding="0">
    	  <tr valign="top">			
    		<%	if (!locale.getCountry().equals("en") && webbean.isHomePopup()) {
    			 String popupUrl="../web/homePopup.do?"+urlParamJS;%>
    			<script type="text/javascript">
    				openCustomPopup('<%=popupUrl%>','ClickPopup',250,250,'no','no');
    			</script>
    		<%}%>
    		<td>
    			<table style="padding-left:18px;" border="0" cellpadding="0" cellspacing="0"> <tbody>
      			 <tr>
     
             			<td><%if(logged) { %><tiles:insert name="flash2" flush="true" /><%} else{ %><tiles:insert name="flash" flush="true" /><%} %></td>
     
                		<td style="padding-left:14px;"><tiles:insert name="event" flush="true" /></td>          		
        		</tr><tr>
     
          <td colspan="2">
           <table style="text-align: left;" border="0" cellpadding="0" cellspacing="0"><tbody>
              <tr>
                <td colspan="3"><img  alt="" src="../files/images/home/barre1_<%=locale.getLanguage()%>.gif"></td>
              </tr>
              <tr>
                <td colspan="3"><img alt=""src="../files/images/home/barre2_<%=locale.getLanguage()%>.gif"></td>
              </tr>
              <tr>   
              	<MAP NAME="click"><AREA NAME="click" SHAPE="rect" COORDS="1,1,375,100" href="../web/presentation.do?pc=<%=1%>&amp;idmenu=2&amp;<%=urlParam%>" ALT=""></MAP>        
                <td style="background-image:url(../files/images/home/box_1_<%=locale.getLanguage()%>.gif); background-repeat:no-repeat; width: 375px; height: 223px;"><tiles:insert name="box1" flush="true" />
    				<img class = "pos1" src="../files/images/commun/vide.gif" USEMAP="#click" alt=""/>
    			</td>
                <td style="width: 11px;"></td>
                <MAP NAME="vanilla"><AREA NAME="vanilla" SHAPE="rect" COORDS="1,1,375,100" href="../web/presentation.do?pc=<%=WebConstant.VANILLA_PRODUCT_CATEGORY%>&amp;idmenu=2&amp;<%=urlParam%>" ALT=""></MAP>
                <td style="background-image:url(../files/images/home/bloc_vanilles_<%=locale.getLanguage()%>.gif);background-repeat:no-repeat; width: 375px; height: 223px;"><tiles:insert name="box.vanilla" flush="true" />
    				<img class = "pos2" src="../files/images/commun/vide.gif" USEMAP="#vanilla" alt=""/>
    			</td>
              </tr>
              <tr>
                <td colspan="3"><img  style="width: 758px; padding-left:1px;"alt=""src="../files/images/home/barre3_<%=locale.getLanguage()%>.gif"></td>
              </tr>
              <tr>
               <MAP NAME="turbojour"><AREA NAME="turbojour" SHAPE="rect" COORDS="1,1,375,118" href="../web/presentation.do?pc=<%=WebConstant.TURBO_DAY_PRODUCT_CATEGORY%>&amp;idmenu=2&amp;<%=urlParam%>" ALT=""></MAP>
               <td style="background-image:url(../files/images/home/boxturbojour_<%=locale.getLanguage()%>.gif);background-repeat:no-repeat; width: 375px; height: 228px;"><tiles:insert name="box.turbojour" flush="true" />
    				<img class = "pos3" src="../files/images/commun/vide.gif" USEMAP="#turbojour" alt=""/>
    		   </td>
    		   <td style="width: 11px;"></td>
    		   <MAP NAME="turbo"><AREA NAME="turbo" SHAPE="rect" COORDS="1,1,375,118" href="../web/presentation.do?pc=<%=WebConstant.TURBO_PRODUCT_CATEGORY%>&amp;idmenu=2&amp;<%=urlParam%>" ALT=""></MAP>
               <td style="background-image:url(../files/images/home/bloc_stoploss_<%=locale.getLanguage()%>.gif);background-repeat:no-repeat;  width: 375px; height: 228px;"><tiles:insert name="box.turbo" flush="true" />
    				<img class = "pos4" src="../files/images/commun/vide.gif" USEMAP="#turbo" alt=""/>
    			</td>
              </tr>
            </tbody>
          </table>
     
          </td>
        </tr>
      </tbody>
    </table>
    <div class="txt" style="padding-left:20px; padding-right:20px;">
    	<br><%=bundle.getString("linkeo_afei")%><br><br>
    	<%=bundle.getString("note_amf")%><br><br><br>
    </div>
    				</td>
    				<td class="right"><br>		
    					<tiles:insert name="graphique" flush="true" />			
    					<tiles:insert name="x1" flush="true" />
    					<tiles:insert name="x2" flush="true" />
    					<tiles:insert name="menuLinkeo" flush="true" />
    					<tiles:insert name="x3" flush="true" />			   
    				</td>
    			</tr>
    		</table>
    	</div>

  5. #5
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    As-tu regardé si tu avais des messages d'erreur dans la log du serveur ?

  6. #6
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Par défaut
    j'ai ce ci dans mon catalina.log

    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
    54
    55
    56
    57
    58
    3 oct. 2007 10:53:55 org.apache.catalina.core.StandardContext start
    GRAVE: Error in resourceStart()
    3 oct. 2007 10:53:55 org.apache.catalina.core.StandardContext start
    GRAVE: Error getConfigured
    3 oct. 2007 10:53:55 org.apache.catalina.core.StandardContext start
    GRAVE: Erreur de démarrage du contexte [/admin] suite aux erreurs précédentes
    3 oct. 2007 10:53:55 org.apache.catalina.core.StandardContext stop
    INFO: Le conteneur org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] n'a pas été démarré
    3 oct. 2007 10:53:55 org.apache.catalina.startup.HostConfig deployDescriptor
    ATTENTION: A docBase C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\CLKPROTT01\clkpro03\products\clickoptions\webapp\applications\chat.war inside the host appBase has been specified, and will be ignored
    3 oct. 2007 10:53:56 org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
    INFO: Tiles definition factory loaded for module ''.
    3 oct. 2007 10:54:04 org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
    INFO: Tiles definition factory loaded for module ''.
    3 oct. 2007 10:54:11 org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
    INFO: Tiles definition factory loaded for module ''.
    3 oct. 2007 10:54:11 ortg.apache.catalina.startup.ContextConfig init
    GRAVE: Exception fixing docBase: {0} 
    java.util.zip.ZipException: The system cannot find the file specified
    	at java.util.zip.ZipFile.open(Native Method)
    	at java.util.zip.ZipFile.<init>(Unknown Source)
    	at java.util.jar.JarFile.<init>(Unknown Source)
    	at java.util.jar.JarFile.<init>(Unknown Source)
    	at sun.net.www.protocol.jar.URLJarFile.<init>(Unknown Source)
    	at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
    	at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
    	at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
    	at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source)
    	at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:140)
    	at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:865)
    	at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:977)
    	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:273)
    	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    	at org.apache.catalina.core.StandardContext.init(StandardContext.java:5041)
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3908)
    	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
    	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)
    	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
    	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
    	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
    	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
    	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
    	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
    	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
    	at org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
    	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
    3 oct. 2007 10:54:11 org.apache.catalina.core.StandardContext resourcesStart

  7. #7
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    Désolée mais je ne sais pas du tout d'où vient ton problème.

  8. #8
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Par défaut
    Citation Envoyé par c_nvy Voir le message
    J'ai déjà eu ce symptôme avec les tiles mais je ne me souviens plus ce qui le provoquait.

    As-tu essayé avec flush="false" ?

    Peux-tu montrer le code du 3ème tiles ?
    C'etait un bug struts ou un truc dans ton code qui le fesait ?

  9. #9
    Expert confirmé

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Par défaut
    Je pense que c'était quelque chose dans mon code mais je ne me souviens plus quoi. Désolée.

  10. #10
    Membre éclairé
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Par défaut
    oui moi aussi c'etait quelque chose dans mon code. En fait une exeption que je ne catchait pas

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Pb avec les tiles
    Par sadkat dans le forum Struts 1
    Réponses: 19
    Dernier message: 02/07/2009, 16h19
  2. Struts-layout avec Struts Tiles
    Par gitos dans le forum Struts 1
    Réponses: 4
    Dernier message: 26/03/2009, 16h10
  3. problème avec struts-tiles
    Par osman.amine dans le forum Struts 1
    Réponses: 1
    Dernier message: 17/04/2007, 10h23
  4. ancres avec struts / tiles
    Par rocky1410 dans le forum Struts 1
    Réponses: 3
    Dernier message: 20/12/2006, 10h01
  5. [STRUTS] Probleme avec le tiles Framework
    Par SEMPERE Benjamin dans le forum Struts 1
    Réponses: 7
    Dernier message: 02/10/2004, 14h11

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