Forums Rue-Montgallet.com
Rue-Montgallet.comRue-Hardware.comRue-Occasion.comRue-DVD.comRue-Jeuxvideo.comRue-AudioVideo.comRue-Telephone.comForums
S'inscrire | S'identifier |
| Recherche avancée | Aide
 
 

sthv Achat - Vente Informatique : herve_94220 Achat - Vente Divers : schloups, super-warrior, tademi16 et 28 utilisateurs inconnus

 Mot :   Pseudo :  
 
Bas de page
Auteur
 Sujet :

Probleme avec Java/Jsp Struts

 
n°14789
Jessica_
Profil : Jeune recrue
Posté le 14-09-2005 à 12:15:29  profilanswer
 

:hello: Bonjour a tous!! :hello:  
 
Voila depuis trois jours je suis sur une erreur java que je n'arrive pas à résoudre. Alors mon dernier espoir, c'est vous!
Je m'explique, j'ai réalisé quelques pages jsp en utilisant les balises struts et la librairie jstl. Je n'ai pas d'erreurs ni a la compilation ni au deploiement. Satisfaite, je m'apprete alors a tester le resultat et arrivee sur la page web en question : VLAN => erreur, rien ne marche, du coup j'ai une page blanche à la place de mes jolis tableaux et une belle erreur dans mon JBuilder.
 
Voici mon code JSP et la vilaine erreur  :fou: :
 
--------------------- JSP -----------------------------------------------
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ page import="java.util.*, java.text.*, com.frenchconnexion.frcregistrar.gateway.srs.web.srs.bean.FrcGatewaySrsBean" %>
<jsp:useBean id="frcGatewaySrsBean" scope="session" class="com.frenchconnexion.frcregistrar.gateway.srs.web.srs.bean.FrcGatewaySrsBean" />
<jsp:useBean id="webInformationBean" scope="session" class="com.frenchconnexion.frcregistrar.core.web.bean.WebInformationBean" />
 
<h1>Gateway Request List Editable</h1>
 
<table id="webinfo" width="80%">
<tbody>
<tr class="haut" id="webinfo_title">
  <td>Information Box<script type=text/javascript>showTocToggle2("afficher","masquer","webinfo", "true" )</script></td>
</tr>
<tr class="normal" id="webinfo_inside">
  <td>
    <table width="100%">
      <tr class="normal">
        <td class="td1" width="100">Operation</td>
        <td class="td2" width="100"><c: out value="${webInformationBean.operation}"/></td>
        <td class="td1" width="100">Method</td>
        <td class="td2" width="100"><c: out value="${webInformationBean.method}"/></td>
        <td class="td1" width="100">Status</td>
        <td class="td2"><c: out value="${webInformationBean.status}"/></td>
      </tr>
      <tr class="normal">
        <td class="td1" width="100">Value</td>
        <td class="td2" width="100"><c: out value="${webInformationBean.value}"/></td>
        <td class="td1" width="100">Function</td>
        <td class="td2" width="100"><c: out value="${webInformationBean.function}"/></td>
        <td class="td1" width="100">Type</td>
        <td class="td2"><c: out value="${webInformationBean.type}"/></td>
      </tr>
    </table>
  </td>
</tbody>
</table>
</br>
 
<%if (frcGatewaySrsBean.getFrcGatewaySrsDtos()== null || frcGatewaySrsBean.getFrcGatewaySrsDtos().length==0) {%>
<p>Pas de requete </p>
<%}else{%>
 
<html:form action="<%=request.getContextPath()%>/FrcGatewaySrsListEditor.do" method="POST">
 
  <table width="80%">
    <tr>
      <td align="left"><%=frcGatewaySrsBean.getFrcGatewaySrsDtos().length%> requetes selectionnées</td>
      <td align="right">
        <html:submit value="envoyer"/>
        <html:hidden property="operation" name="operation" value="finder"/>
        <html:hidden property="maxRequest" name="maxRequest"/>
        </td>
      </tr>
    </table>
 
<table class="sortable" width="80%">
  <tr class="haut">
    <td>Id</td>
    <td>Transaction</td>
    <td>Opération</td>
    <td>Objet</td>
    <td>Registre</td>
    <td>Type</td>
    <td>RSend</td>
    <td>Del</td>
  </tr>
  <% for (int i=0;i<frcGatewaySrsBean.getFrcGatewaySrsDtos().length;i++){%>
  <tr>
    <td bgcolor="blue" height="5px"></td>
  </tr>
  <tr class="normal">
    <td>
    <html:hidden property="frcGatewaySrsId_<%=i%>" name="frcGatewaySrsId_<%=i%>"/>
    <%=FrcGatewaySrsBean.getLong(frcGatewaySrsBean.getFrcGatewaySrsDtos()[i].getFrcGatewaySrsId())%>
    </td>
    <td><b><%=FrcGatewaySrsBean.getString(frcGatewaySrsBean.getFrcGatewaySrsDtos()[i].getTransactionId())%></b></td>
    <td><b><%=FrcGatewaySrsBean.getString(frcGatewaySrsBean.getFrcGatewaySrsDtos()[i].getOperation())%></b></td>
    <td><b><%=FrcGatewaySrsBean.getString(frcGatewaySrsBean.getFrcGatewaySrsDtos()[i].getObject())%></b></td>
    <td><b><%=FrcGatewaySrsBean.getString(frcGatewaySrsBean.getFrcGatewaySrsDtos()[i].getRegistry())%></b></td>
    <td><b><%=FrcGatewaySrsBean.getString(frcGatewaySrsBean.getFrcGatewaySrsDtos()[i].getType())%></b></td>
    <td><html:checkbox property="resend_request_<%=i%>" name="resend_request_<%=i%>" value="1"/></td>
    <td><html:checkbox property="delete_request_<%=i%>" name="delete_request_<%=i%>" value="1"/></td>
  </tr>
  <tr>
    <td colspan="8">
      <table width="100%">
        <tr class="normal">
          <td align="left" width="50%"><%=FrcGatewaySrsBean.getTime(frcGatewaySrsBean.getFrcGatewaySrsDtos()[i].getRequestTime())%></td>
          <td align="left" width="50%"><%=FrcGatewaySrsBean.getTime(frcGatewaySrsBean.getFrcGatewaySrsDtos()[i].getResponseTime())%></td>
          <td></td>
        </tr>
        <tr class="normal">
          <td width="50%"><html:textarea  property="new_request_<%=i%>" name="new_request_<%=i%>" cols="65" rows="8"><%=FrcGatewaySrsBean.getString(frcGatewaySrsBean.getFrcGatewaySrsDtos()[i].getRequestObject())%></html:textarea></td>
          <td width="50%"><font size="0"><%=FrcGatewaySrsBean.getRequest(frcGatewaySrsBean.getFrcGatewaySrsDtos()[i].getResponseObject())%></font> </td>
          <td>
            <a href="<%=request.getContextPath()%>/FrcGatewaySrsSelector.do?operation=finder&method=pk&value=<%=frcGatewaySrsBean.getFrcGatewaySrsDtos()[i].getFrcGatewaySrsId()%>">view</a><br/>
            <a href="<%=request.getContextPath()%>/FrcGatewaySrsRemover.do?operation=list_editable&frcGatewaySrsId=<%=frcGatewaySrsBean.getFrcGatewaySrsDtos()[i].getFrcGatewaySrsId()%>">Ign</a>
            <a href="<%=request.getContextPath()%>/administrator/gateway/srs/gateway_srs_sender_main.jsp" target="_blank">direct</a>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <%}%>
</table>
 
<table width="80%">
  <tr>
    <td align="left"><%=frcGatewaySrsBean.getFrcGatewaySrsDtos().length%> requetes selectionnées</td>
    <td align="right">
      <html:submit value="envoyer"/>
      <html:hidden property="operation" name="operation" value="finder"/>
      <html:hidden property="maxRequest" name="maxRequest"/>
    </td>
  </tr>
</table>
 
</html:form>
<%} %>
 
--------------------- VILAINE ERREUR -----------------------------------------------
 
12:11:31,374 ERROR [Engine] StandardWrapperValve[action]: Servlet.service() for servlet action threw exception
 
javax.servlet.jsp.JspException: ServletException in '/administrator/gateway/srs/gateway_srs_list_editable.jsp': /administrator/gateway/srs/gateway_srs_list_editable.jsp(118,0) The end tag "&lt;/html:form" is unbalanced
 
 at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:923)
 
 at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
 
 at org.apache.jsp.layouts.classicDivLayout_jsp._jspx_meth_tiles_insert_2(classicDivLayout_jsp.java:194)
 
 at org.apache.jsp.layouts.classicDivLayout_jsp._jspService(classicDivLayout_jsp.java:116)
 
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
 
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
 
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 
 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
 
 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
 
 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
 
 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
 
 at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
 
 at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
 
 at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)
 
 at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
 
 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
 
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
 
 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
 
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
 
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
 
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 
 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
 
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
 
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
 
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 
 at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
 
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
 
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 
 at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
 
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 
 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
 
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 
 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
 
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
 
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
 
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
 
 at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
 
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
 
 at java.lang.Thread.run(Thread.java:534)
--------------------------------------------------------------------------------
 
Aie Aie Aie , cette erreur me rend folle  :pt1cable: ché pas d'ou elle vient si quelqu'un peut m'aider svp :) J'attends vos reponses avec impatience, Merciiiii!!!
 
 
 


---------------
Estelio guru lîn
n°14869
Agonis57
Profil : Jeune recrue
Posté le 02-10-2005 à 11:24:33  profilanswer
 

Je ne m'y connais pas en jsp, mais un peu en asp et en web, et en java
 
j'ai l'impression qu'il n'est pas du tout content de ton avant dernière instruction </html:form> (&lt; veut dire less than et correspond donc a '<')
 
ca peut venir de plein de chose, il faudrait que tu vérifie bien que tous tes tableau sont fermer, ainsi que tes boucles ....
 
 
mais ce genre de programme est très dur à débugger. mon conseil est de tout mettre en commentaire, sauf les bornes d'ouverture de page et de fermeture. tu essaies, puis tu décommente les blocs d'instructions petit a petit. comme ca tu sauras situer le problème, et la plupart du temps, tu te rendras compte que t'avais une pauvre erreur de syntaxe....

n°16199
menzlitsh
si on veut on peut
Profil : Jeune recrue
Posté le 31-03-2006 à 23:43:41  profilanswer
 

je pense aussi que t'as ajouter un < supplémentaire dans ton page jsp :
 
</html:form>
<%} %> ======></html:form>
%} %>  

n°16220
Ryo-Ohki
namae nanka
Profil : Légende vivante
Posté le 02-04-2006 à 15:54:53  profilanswer
 

Et allez.
 
Monsieur a uppé tous les topics struts qu'il a trouvé   :sarcastic:


---------------
Hollow Cabbit of Caerbannog | Chacalapinours Légendaire | Grand Ermite en Chef  :o
In nomine Felis, et Insania, et Malikis Sancti Amen | Mon Blog Photo
n°16221
RSsnd6tmKP
De l'autre côté du miroir...
Profil : Vieux de la vieille
Posté le 02-04-2006 à 17:55:50  profilanswer
 

c'est ariver en section o/c aussi le type il a up tout les topic de 2005 sur les boitié Tagan :sarcastic:


---------------
"But I don't want to go among mad people," Alice remarked.  
"Oh, you can't help that," said the Cat: "we're all mad here. I'm mad. You're mad."  
"How do you know I'm mad?" said Alice.  
"You must be," said the Cat, "or you wouldn't have come here."

Aller à :
Ajouter une réponse