Accueil > Forum > > > > [WSAD][WAS]Error Call JSP
[WSAD][WAS]Error Call JSP
mardi 29 mars 2005 à 09:48:15 |
[WSAD][WAS]Error Call JSP

killahbeez68
|
Hi tlm,
un probleme tout bete j imagine mais ki est nouveau pour moi...
Jai une servlet qui appel tout betement une page JSP...
en arrivant dans la pages JSP, j me prends une erreur :
com.ibm.ws.webcontainer.servlet.exception.UncaughtServletException: Server caught unhandled exception from servlet [JSP 1.2 Processor]: null
Voici comment j appel ma page JSP depuis ma servlet :
| Code: |
// Appel JSP OutilsServlet.callJSP(req, res, getFichierParametre(req), "main.jsp", getServletContext());
|
Donc la, avec le debugger, je suis bien renvoyé vers le "main.jsp"
et en arrivant dans la JSP, j me prends l erreur... Est lié a des librairies jar mankantes ou a une erreur de code selon vous ? j preciese ke mon WEB-INF/lib est vide...( ca pe jouer ? lol )
|
|
mardi 29 mars 2005 à 09:48:51 |
Re : [WSAD][WAS]Error Call JSP

killahbeez68
|
Alors en enlevant tout le code Jsp y a pas de probleme ca marche... J vais préciser l'erreur que j obtiens :
Avec le debugger, en mode pas a pas, je suis bien redirigé vers ma page ( main.jsp)
il lit 2 - 3 truc et ensuite au moment de tomber sur une fonction JSP (if (existeselection) vori plus bas dans le code, tout a la fin kasiment ) , il m 'ouvre une fenetre et me demande ca :
Le code source de 'com.ibm.ws.webcontainer.jsp.servlet.JspServlet' est introuvable (je fais ensuite echape plusieur fois sans lui indkier de source, je sais pas ou la trouver... et voici ce ki sen suit....) Le code source de 'com.ibm.ws.webcontainer.StrictServletInstance' est introuvable(je fais ensuite echape plusieur fois sans lui indkier de source, je sais pas ou la trouver... et voici ce ki sen suit....) Le code source de 'com.ibm.ws.webcontainer.StrictLifecycleServlet' est introuvable (je fais ensuite echape plusieur fois sans lui indkier de source, je sais pas ou la trouver... et voici ce ki sen suit....) Le code source de 'com.ibm.ws.webcontainer.servlet.ServletInstance' est introuvable (je fais ensuite echape plusieur fois sans lui indkier de source, je sais pas ou la trouver... et voici ce ki sen suit....) Le code source de 'com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher' est introuvable
A mon avis ca vient d'un Jar a ajouter dans le chemin de compilation on un truc dans le genre mais j vois pas du tout le kelle
Voici le code de la page JSP en kestion...
| Code: |
<jsp:useBean id="BEAN_MSG" class="com.socgen.pim.util.MessageUtilisateurBean" scope="request"/> <jsp:useBean id="BEAN_DATA_USER" class="com.socgen.pim.ccf.PIMMainRecordUtil" scope="request"/> <HTML> <HEAD> <META name="Author" content="INFO/PTF/MON/QGT Bertrand RINIE (193.72)"> <META name="keywords" content="PIM, INFO/PTF/MON, PIM,Patrimoine, Informatique, Monetique"> <TITLE><%=BEAN_DATA_USER.get_DataExt("TITNAV").trim()%></TITLE> <link rel="stylesheet" href="../htm/css/pim.css" type="text/css">
<SCRIPT language="Javascript"> var newfrm = null;
function PIMFillMain(codact,idtpag,valent,valfil,valpagpre1,valpagpre2,valpagpre3,valpagpre4,valpagpre5,valpagpre6,valpagpreix,valpagsui,numpag,lgrdon,idtbtn) { frm = document.frmmain; frm.CODACT.value = codact; frm.IDTPAG.value = idtpag; frm.VALENT.value = valent; frm.VALFIL.value = valfil; frm.VALENTPAGPRE[0].value = valpagpre1; frm.VALENTPAGPRE[1].value = valpagpre2; frm.VALENTPAGPRE[2].value = valpagpre3; frm.VALENTPAGPRE[3].value = valpagpre4; frm.VALENTPAGPRE[4].value = valpagpre5; frm.VALENTPAGPRE[5].value = valpagpre6; frm.VALENTPAGPREIX.value = valpagpreix; frm.VALENTPAGSUI.value = valpagsui; frm.NUMPAG.value = numpag; frm.LGRDON.value = lgrdon; frm.BOUTON.value = idtbtn; }
function PIMBoutonC(codact,idtpag,valent,valfil,valpagpre1,valpagpre2,valpagpre3,valpagpre4,valpagpre5,valpagpre6,valpagpreix,valpagsui,numpag,lgrdon,idtbtn,msg) { if(msg=="" || confirm(msg)) { if (Verif_Obligatoire()) { PIMFillMain(codact,idtpag,valent,valfil,valpagpre1,valpagpre2,valpagpre3,valpagpre4,valpagpre5,valpagpre6,valpagpreix,valpagsui,numpag,lgrdon,idtbtn); frm = document.frmmain; frm.submit(); } } return false; }
function PIMMainLink(codact,idtpag,valent,valfil,valpagpre1,valpagpre2,valpagpre3,valpagpre4,valpagpre5,valpagpre6,valpagpreix,valpagsui,numpag,lgrdon,idtbtn,msg) { if(msg=="" || confirm(msg)) { if (Verif_Obligatoire()) { frm = document.frmmain; frm.CODACT.value = codact; frm.IDTPAG.value = idtpag; frm.VALENT.value = valent; frm.VALFIL.value = valfil; frm.VALENTPAGPRE[0].value = valpagpre1; frm.VALENTPAGPRE[1].value = valpagpre2; frm.VALENTPAGPRE[2].value = valpagpre3; frm.VALENTPAGPRE[3].value = valpagpre4; frm.VALENTPAGPRE[4].value = valpagpre5; frm.VALENTPAGPRE[5].value = valpagpre6; frm.VALENTPAGPREIX.value = valpagpreix; frm.VALENTPAGSUI.value = valpagsui; frm.NUMPAG.value = numpag; frm.LGRDON.value = lgrdon; frm.BOUTON.value = idtbtn; frm = document.frmmain; frm.submit(); } } return false; }
function PIMNewWindowLink(codact,idtpag,valent,valfil,valpagpre1,valpagpre2,valpagpre3,valpagpre4,valpagpre5,valpagpre6,valpagpreix,valpagsui,numpag,lgrdon,idtbtn,msg,hauteur) { if(msg=="" || confirm(msg)) { s = "/pim/servlet/com.socgen.pim.servlets.PimMainServlet?"; s += "CODACT="+codact+"&IDTPAG="+idtpag+"&VALENT="+convertURL(valent)+"&VALFIL="+convertURL(valfil); s += "&VALENTPAGPRE[0]="+convertURL(valpagpre1)+"&VALENTPAGPRE[1]="+convertURL(valpagpre2)+"&VALENTPAGPRE[2]="+convertURL(valpagpre3); s += "&VALENTPAGPRE[3]="+convertURL(valpagpre4)+"&VALENTPAGPRE[4]="+convertURL(valpagpre5)+"&VALENTPAGPRE[5]="+convertURL(valpagpre6); s += "&VALENTPAGPREIX="+valpagpreix+"&VALENTPAGSUI="+convertURL(valpagsui); s += "&NUMPAG="+numpag+"&LGRDON="+lgrdon+"&BOUTON="+idtbtn; xOffset = 0; yOffset = ((screen.height - hauteur)/2); newfrm = window.open(s,'<%=BEAN_DATA_USER.getMsg__idtpag()%>','width='+(screen.width-10)+',height='+hauteur+',top='+yOffset+',left='+xOffset+',scrollbars=yes,resizable=yes'); return false; } }
function convertURL(val) { var hex = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"); var len = val.length; var newVal = ""; var c = ""; for (i=0;i<len;i++) { c = val.substring(i, i+1); if ("\"<>%\\^[]&`\+\$\,".indexOf(c) == -1 && c.charCodeAt(0) > 32 && c.charCodeAt(0) < 123) { newVal += c; } else { num = c.charCodeAt(0); temp = num % 16; num = Math.floor(num / 16); newVal += "%" + hex[num] + hex[temp]; } } return newVal; }
function PIMNewRadioWindowLink(codact,idtpag,valent,valfil,valpagpre1,valpagpre2,valpagpre3,valpagpre4,valpagpre5,valpagpre6,valpagpreix,valpagsui,numpag,lgrdon,idtbtn,msg,hauteur,indice) { indice*=1; document.frmmain.NUMCHAMP.value = indice; PIMNewWindowLink(codact,idtpag,valent,valfil,valpagpre1,valpagpre2,valpagpre3,valpagpre4,valpagpre5,valpagpre6,valpagpreix,valpagsui,numpag,lgrdon,idtbtn,msg,hauteur); }
function PIMNewStaticLink(page){ yOffset = 0; window.open('../htm/'+page, 'r', 'width='+(screen.width-10)+',height=400,top='+yOffset+',left=0,scrollbars=yes,resizable=yes'); }
function frmFocus() { if (newfrm!=null && !newfrm.closed) { newfrm.focus(); window.blur(); } }
function frmUnload() { if (newfrm!=null && !newfrm.closed) newfrm.close(); }
function closeSelf() { if (top.opener) { top.opener.top.opened = false; top.opener.top.popup = null; top.opener.focus(); } top.close(); }
function closePopup() { if (top.popup) { if (top.popup.open) { top.popup.top.toUnload = false; top.popup.close(); } top.popup = null; } top.opened=false; }
function Fermeture(typebtn) { switch(typebtn) { case "F": closeSelf(); break; case "S": closeSelf(); frm=window.opener.document.forms["frmrefresh"]; frm.submit(); break; case "B": window.opener.history.back(); frm=window.opener.document.forms["frmrefresh"]; frm.submit(); break; case "C": alert('cas typebtn = C'); window.history.back(); break; case "M": MAJChamp(); closeSelf(); break; default : break; } }
function checkKey() { var evt = window.event; var keyChar = String.fromCharCode(evt.keyCode); if (keyChar == '%' || keyChar == '_' || keyChar == '\'' || keyChar == '"') { evt.returnValue=false; return false; } }
function checkKey2() { var evt = window.event; var keyChar = String.fromCharCode(evt.keyCode); if (keyChar == '"' || evt.keyCode == 13) { evt.returnValue=false; return false; } }
function blockAction() { var evt = window.event; if (evt.button == 2 ) { alert('Action du bouton droit non gérée'); return false; } if (evt.button == 1 && evt.shiftKey) { alert('Impossible d\'ouvrir dans une nouvelle fenêtre'); return false; } } </SCRIPT> </HEAD> <BODY class="BODY_MENU" onFocus="frmFocus()" onUnload="frmUnload()"> <BR> <% //---------------------------------------------- // Definition de la premiere ligne de la page : titre + timestamp //----------------------------------------------%> <TABLE border=0 width="100%"> <TR> <TD width="18%"> <% if (BEAN_DATA_USER.get_DataInt("POPUP",BEAN_DATA_USER.getMsg__out__buffer()).equals("")) {%> <a href="../htm/accueil.htm" > <%}%> <img src="../bin/logo_pim.gif" border="0"> <% if (BEAN_DATA_USER.get_DataInt("POPUP",BEAN_DATA_USER.getMsg__out__buffer()).equals("")) {%> </a> <%}%> </TD> <TD class="TITRE" width="64%"><%=BEAN_DATA_USER.get_DataExt("TITLE").trim()%></TD> <% if (!BEAN_DATA_USER.get_DataInt("DATE").trim().equals("")) {%> <TD class="DATE" width="18%">Dernière actualisation le <%=BEAN_DATA_USER.get_DataInt("DATE").trim()%></TD> <%}else{%> <TD class="DATE" width="18%"> </TD> <%}%> </TR> </TABLE> <%
String donnees = BEAN_DATA_USER.getMsg__out__buffer(); boolean ltab = false; boolean modif = false; boolean existeloupe = false; boolean existeaide = false; boolean existeobl = false; boolean loupe = false; boolean obligatoire = false; boolean extBouton = false; boolean dernierobl = false; int indTxtBox = 1; int posCour = 0; int resolution = 1024; int sizeZModif = 80;
//---------------------------------------------- // Filtre d'une colonne (rechercher) //---------------------------------------------- if (!BEAN_DATA_USER.get_DataInt("FIL",donnees).equals("")) { int lf= Integer.parseInt(BEAN_DATA_USER.get_DataInt("LF")); %> <FORM name="frmsearch" method="post" action="/pim/servlet/com.socgen.pim.servlets.PimMainServlet"> <TABLE width="100%" border=0 cellspacing=0 cellpadding=0> <TR> <TD class="FILTRE" width="40%"> <INPUT type="hidden" name="CODACT" value="F"> <INPUT type="hidden" name="IDTPAG" value="<%=BEAN_DATA_USER.getMsg__idtpag()%>"> <INPUT type="hidden" name="VALENT" value="<%=BEAN_DATA_USER.getMsg__valent().trim()%>"> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPREIX" value=""> <INPUT type="hidden" name="VALENTPAGSUI" value=""> <INPUT type="hidden" name="NUMPAG" value=""> <%//<INPUT type="hidden" name="LGRDON" value="<%=BEAN_DATA_USER.getL__LGRDON()%>">%> Filtre : <INPUT type="text" class="TXTBOX" name="VALFIL" size=<%=((lf>50)?50:lf)%> value="<%='"'+BEAN_DATA_USER.getMsg__valfil().trim()+'"'%>" onKeyPress="checkKey()"> <input class="BOUTON" type="submit" name="type_action" value="Rechercher"> </TD><td></form></td> <% //---------------------------------------------- // Zone d'erreur fonctionnelle (message informatif) //---------------------------------------------- if (BEAN_DATA_USER.getMsg__codret().equals("2")) { %> <TD class="MSG_INF" width="60%"><%=BEAN_DATA_USER.getMsg__liberrfct().trim()%></TD> <% }%> </TR> </TABLE> <% } else { //---------------------------------------------- // Zone d'erreur fonctionnelle (message informatif) //---------------------------------------------- if (BEAN_DATA_USER.getMsg__codret().equals("2")) { %> <TABLE width="100%" border=0 cellspacing=0 cellpadding=0> <TR><TD class="MSG_INF" width="100%"><%=BEAN_DATA_USER.getMsg__liberrfct().trim()%></TD></TR> </TABLE> <% } else { %> <BR> <% } }
//variable qui va servir pour afficher des cases à cocher ou checkbox String selection = new String("aucune"); boolean existeselection = false;
%> <TABLE border="0"> <TR> <TD> <FORM name="frmmain" method="post" action="/pim/servlet/com.socgen.pim.servlets.PimMainServlet" target="_parent"> <INPUT type="hidden" name="CODACT" value=""> <INPUT type="hidden" name="IDTPAG" value=""> <INPUT type="hidden" name="VALENT" value=""> <INPUT type="hidden" name="VALFIL" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPREIX" value=""> <INPUT type="hidden" name="VALENTPAGSUI" value=""> <INPUT type="hidden" name="NUMPAG" value=""> <INPUT type="hidden" name="LGRDON" value=""> <INPUT type="hidden" name="BOUTON" value=""> </TD><TD width="100%"> <%
//---------------------------------------------- // boucle sur le nombre d'éléments à afficher //---------------------------------------------- for (int i=0; i<BEAN_DATA_USER.get_NbElm("NB_ELM");i++) { modif=false; extBouton=false; ltab=false; BEAN_DATA_USER.set_LigneCour(0);
if (!BEAN_DATA_USER.get_ValFromElm(i,"TYPSEL").equals("")) { selection = BEAN_DATA_USER.get_ValFromElm(i,"TYPSEL"); existeselection = true; } else { selection = "aucune"; }
if (!BEAN_DATA_USER.get_ValFromElm(i,"LTAB").equals("")) { ltab=true; %> <TABLE class="EXT"> <TR> <TD class="LTAB"><h1> <%=BEAN_DATA_USER.get_ValFromElm(i,"LTAB").trim()%></h1></TD> </TR> <TR> <TD class="CADRE"> <% } //boucle sur la lecture ligne / ligne de l'élément i if (!BEAN_DATA_USER.get_ValFromElm(i,"NOLINE").equals("")) { %> <P class="NOLINE"><%=BEAN_DATA_USER.get_ValFromElm(i,"NOLINE")%></P> <% } else { %> <TABLE class="INT" border=1 width="100%"> <% for (int j=BEAN_DATA_USER.get_NextLine(i), indTR=2; j>0; j=BEAN_DATA_USER.get_NextLine(i)) { %><TR class=<%="TR"+indTR%> valign="top"> <% boolean premCol = true;
//---------------------------------------------- // boucle sur la lecture colonne / colonne de la ligne j de l''élément i //---------------------------------------------- for (int k=BEAN_DATA_USER.get_NextCol(); k>0; k=BEAN_DATA_USER.get_NextCol()) { String bal = BEAN_DATA_USER.get_ColBalise(); String valCol = BEAN_DATA_USER.get_ColValue(); boolean noWrap=false;
//gestion cases à cocher et radio boutons if (j==1 && premCol && !selection.equals("aucune")) { premCol = false; %> <TH class=C width=2%> </TH> <% } else { if (premCol) { premCol = false; if (selection.equals("C")) { %> <TD class=C width=2%> <input type="checkbox" name="TXTBOX<%=+indTxtBox%>" class="TXTBOX<%=indTR%>" value="<%=BEAN_DATA_USER.get_DataIntLink(BEAN_DATA_USER.get_ColData().trim())%>"> </TD> <% indTxtBox++; } else { if (selection.equals("R")) { %> <TD class=C width=2%> <input type="radio" name="TXTBOX<%=indTxtBox%>" class="<%="CASES"+indTR%>" value="<%=BEAN_DATA_USER.get_ColData().trim()%>"> </TD> <% } } } }
if (!BEAN_DATA_USER.get_DataInt("NOWRAP",valCol).equals("")) { noWrap=true; }
if (bal.equals("<TD>")) { %> <TD class=<%=BEAN_DATA_USER.get_DataInt("ALIGN",valCol)%> width=<%=BEAN_DATA_USER.get_DataInt("LC",valCol)+'%'%> <%=(noWrap?"NOWRAP":"")%>> <% } else { %> <TH class=<%=BEAN_DATA_USER.get_DataInt("ALIGN",valCol)%> width=<%=BEAN_DATA_USER.get_DataInt("LC",valCol)+'%'%> <%=(noWrap?"NOWRAP":"")%>><h2> <% } // Soit la cellule est une image, soit une zone de saisie modifiable, soit une zone de données // Gestion de l'affichage des modifications if (BEAN_DATA_USER.get_DataInt("TYPE",valCol).equals("L")) { %> <% if (!BEAN_DATA_USER.get_DataInt("A HREF",valCol).equals("")) { %> <A HREF=<%=BEAN_DATA_USER.get_DataInt("A HREF",valCol)%>> <%} %> <img border=0 src=<%="../bin/loupe"+indTR+".gif"%>></a> <%loupe=true; existeloupe=true; } else { if (BEAN_DATA_USER.get_DataInt("TYPE",valCol).equals("A")) { %> <% if (!BEAN_DATA_USER.get_DataInt("A HREF",valCol).equals("")) { %> <A HREF=<%=BEAN_DATA_USER.get_DataInt("A HREF",valCol)%>> <% } %> <img border=0 src=<%="../bin/aide"+indTR+".gif"%> width="16" height="16"></a> <% existeaide=true; } else { if (!BEAN_DATA_USER.get_DataInt("MODIF",valCol).equals("")) { %><input type="hidden" name="OBL<%=indTxtBox%>" value="<% if (dernierobl) { %>YES<% } %>"><% if(BEAN_DATA_USER.get_DataInt("MODIF",valCol).equals("A")) { %> <TEXTAREA rows=<%=BEAN_DATA_USER.get_DataInt("TXTAREA",valCol)%> class="TXTBOX<%=indTR%>" name="TXTBOX<%=indTxtBox%>" cols="<%=sizeZModif%>" maxlength=<%=BEAN_DATA_USER.get_DataInt("SIZEMAX",valCol)%> onKeyPress="checkKey2()"><%=BEAN_DATA_USER.get_ColData().trim()%></textarea> <% } else { //gestion des listes deroulantes et textbox if (loupe) { loupe = false; %> <INPUT type="text" class="TXTBOX<%=indTR%>" name="TXTBOX<%=indTxtBox%>" size="<%=sizeZModif%>" maxlength=<%=BEAN_DATA_USER.get_DataInt("SIZEMAX",valCol)%> value=<%='"'+BEAN_DATA_USER.get_ColData()+'"'%> onKeyPress="checkKey2()" readonly><% } else { if(BEAN_DATA_USER.get_DataInt("MODIF",valCol).trim().equals("M")) { %> <INPUT type="text" class="TXTBOX<%=indTR%>" name="TXTBOX<%=indTxtBox%>" size="<%=sizeZModif%>" maxlength=<%=BEAN_DATA_USER.get_DataInt("SIZEMAX",valCol)%> value=<%='"'+BEAN_DATA_USER.get_ColData()+'"'%> onKeyPress="checkKey2()"><% } else { if(BEAN_DATA_USER.get_DataInt("MODIF",valCol).equals("L")) { String select=BEAN_DATA_USER.get_ExtLst(0,valCol).trim(); %> <select class="TXTBOX<%=indTR%>" name="TXTBOX<%=indTxtBox%>"> <% for (int cpt=1;cpt<BEAN_DATA_USER.get_NbLst(valCol);cpt++) { %><option value=<%=BEAN_DATA_USER.get_ExtLst(cpt,valCol).trim()%> <% if (select.equals(BEAN_DATA_USER.get_ExtLst(cpt,valCol).trim())) { %> selected<% }%> ><%=BEAN_DATA_USER.get_ExtLst(cpt,"LIB",valCol).trim()%></option> <% }%> </select> <% } } } } indTxtBox++; } else { //traitement de l'étoile rouge %> <%=BEAN_DATA_USER.get_ColData().trim()%> <% if (bal.equals("<TH>")) if (!(BEAN_DATA_USER.get_DataInt("OBL",valCol).trim().equals(""))) { %><span class="OBLIGATOIRE"> *</span><% existeobl=true; dernierobl=true; } else { dernierobl=false; } } } } //---------------------------------- // FIN MODIFS //---------------------------------- if (bal.equals("<TD>")) { %> </TD> <% } else { %> </h2></TH> <% } } %> </TR> <%
//alternance blanc / gris des lignes if (indTR==1) { indTR=2; } else { indTR=1; } } %> </TABLE> <% }
// Gestion des liens externes (liste complete, détail) if (!BEAN_DATA_USER.get_ExtLink(i).equals("")) { %> <TABLE border=0 width="100%"> <TR> <TD class="C2" width="100%"><A href=<%=BEAN_DATA_USER.get_ExtLink(i).trim()%></A></TD> </TR> </TABLE> <% }
// Gestion des boutons //--------------------------------------------------- // Modifié G. ESTRADE 01/06/2004 //--------------------------------------------------- int cpt=0; String align="G";
//s'il y a des boutons on génère le tableau ainsi que la premiere cellule ou vont appraitre les boutons if(BEAN_DATA_USER.get_NbBouton(i)>0) { %> <TABLE border=0 width="100%"><TR> <% align=BEAN_DATA_USER.get_ExtBouton(i,cpt,"JST").trim(); %> <TD class="<%=align%>2"> <% }
// parcours de tous les boutons de l'élément for (cpt=0;cpt<BEAN_DATA_USER.get_NbBouton(i);cpt++) { // si on est toujours dans le meme alignement on continue a afficher les boutons les uns à la suite des autres if(align.equals(BEAN_DATA_USER.get_ExtBouton(i,cpt,"JST").trim())) { %> <BUTTON class="BOUTON" name="BUTTON" value=<%='"'+BEAN_DATA_USER.get_ExtBouton(i,cpt,"IDTBTN").trim()+'"'%> <%
// test si on doit ouvrir une pop-up ou non if(BEAN_DATA_USER.get_ExtBouton(i,cpt,"HTRPOP").trim().equals("0000")||BEAN_DATA_USER.get_ExtBouton(i,cpt,"HTRPOP").trim().equals("")) { //on regarde si le bouton entraine une fermeture de pop-up ou non if(!(BEAN_DATA_USER.get_ExtBouton(i,cpt,"TYPEBTN").trim().equals("N"))&&!(BEAN_DATA_USER.get_ExtBouton(i,cpt,"TYPEBTN").trim().equals("C"))) { String code=BEAN_DATA_USER.get_ExtBouton(i,cpt,"TYPEBTN").trim(); %> onclick="return Fermeture('<%=code%>')" <% } else { if (BEAN_DATA_USER.get_ExtBouton(i,cpt,"TYPEBTN").trim().equals("C")) { String message=BEAN_DATA_USER.get_ExtBouton(i,cpt,"MSGBOX").trim(); String hauteur=BEAN_DATA_USER.get_ExtBouton(i,cpt,"HTRPOP").trim(); String idtbouton=BEAN_DATA_USER.get_ExtBouton(i,cpt,"IDTBTN").trim(); %> onclick="return PIMBoutonC('B','<%=BEAN_DATA_USER.getMsg__idtpag()%>','<%=BEAN_DATA_USER.getMsg__valent().trim()%>','','','','','','','','','','','<%//=BEAN_DATA_USER.getL__LGRDON()%>','<%=idtbouton%>','<%=message%>');" <% } String message=BEAN_DATA_USER.get_ExtBouton(i,cpt,"MSGBOX").trim(); String hauteur=BEAN_DATA_USER.get_ExtBouton(i,cpt,"HTRPOP").trim(); String idtbouton=BEAN_DATA_USER.get_ExtBouton(i,cpt,"IDTBTN").trim(); %> onclick="return PIMMainLink('B','<%=BEAN_DATA_USER.getMsg__idtpag()%>','<%=BEAN_DATA_USER.getMsg__valent().trim()%>','','','','','','','','','','','<%//=BEAN_DATA_USER.getL__LGRDON()%>','<%=idtbouton%>','<%=message%>');" <% } } else { String message=BEAN_DATA_USER.get_ExtBouton(i,cpt,"MSGBOX").trim(); String hauteur=BEAN_DATA_USER.get_ExtBouton(i,cpt,"HTRPOP").trim(); String idtbouton=BEAN_DATA_USER.get_ExtBouton(i,cpt,"IDTBTN").trim(); %> onclick="return PIMNewWindowLink('B','<%=BEAN_DATA_USER.getMsg__idtpag()%>','<%=BEAN_DATA_USER.getMsg__valent().trim()%>','','','','','','','','','','','<%//=BEAN_DATA_USER.getL__LGRDON()%>','<%=idtbouton%>','<%=message%>','<%=hauteur%>')" <% } %>><%=BEAN_DATA_USER.get_ExtBouton(i,cpt)%></BUTTON> <%
// si on est plus dans le même alignement on ferme la cellule et on en ouvre une autre } else { align=BEAN_DATA_USER.get_ExtBouton(i,cpt,"JST").trim();%> </TD> <TD class="<%=align%>2"> <BUTTON class="BOUTON" name="BUTTON" value=<%='"'+BEAN_DATA_USER.get_ExtBouton(i,cpt,"IDTBTN").trim()+'"'%> <% // test si on doit ouvrir une pop-up ou non if(BEAN_DATA_USER.get_ExtBouton(i,cpt,"HTRPOP").equals("")||BEAN_DATA_USER.get_ExtBouton(i,cpt,"HTRPOP").trim().equals("0000")) { //on regarde si le bouton entraine une fermeture de pop-up ou non if(!(BEAN_DATA_USER.get_ExtBouton(i,cpt,"TYPEBTN").trim().equals("N"))&&!(BEAN_DATA_USER.get_ExtBouton(i,cpt,"TYPEBTN").trim().equals("C"))) { String code=BEAN_DATA_USER.get_ExtBouton(i,cpt,"TYPEBTN").trim(); %> onclick="return Fermeture('<%=code%>')" <% } else { String message=BEAN_DATA_USER.get_ExtBouton(i,cpt,"MSGBOX").trim(); String hauteur=BEAN_DATA_USER.get_ExtBouton(i,cpt,"HTRPOP").trim(); String idtbouton=BEAN_DATA_USER.get_ExtBouton(i,cpt,"IDTBTN").trim(); %> onclick="return PIMMainLink('B','<%=BEAN_DATA_USER.getMsg__idtpag()%>','<%=BEAN_DATA_USER.getMsg__valent().trim()%>','','','','','','','','','','','<%//=BEAN_DATA_USER.getL__LGRDON()%>','<%=idtbouton%>','<%=message%>');" <% } } else { String message=BEAN_DATA_USER.get_ExtBouton(i,cpt,"MSGBOX").trim(); String hauteur=BEAN_DATA_USER.get_ExtBouton(i,cpt,"HTRPOP").trim(); String idtbouton=BEAN_DATA_USER.get_ExtBouton(i,cpt,"IDTBTN").trim(); %> onclick="return PIMNewWindowLink('B','<%=BEAN_DATA_USER.getMsg__idtpag()%>','<%=BEAN_DATA_USER.getMsg__valent().trim()%>','','','','','','','','','','','<%//=BEAN_DATA_USER.getL__LGRDON()%>','<%=idtbouton%>','<%=message%>','<%=hauteur%>')" <% } %>><%=BEAN_DATA_USER.get_ExtBouton(i,cpt)%></BUTTON> <% } }
if(BEAN_DATA_USER.get_NbBouton(i)>0) { %> </TD> </TR> </TABLE> <% }
//--------------------------------------------------- //--------------------------------------------------- // Gestion des icônes utilisés
if (existeloupe||existeaide||existeobl) { %> <TABLE border=0> <TR valign="top"> <% if (existeobl) {%> <TD class="G2"><h3><span class="OBLIGATOIRE"> *</span> Champ obligatoire</h3></TD> <TD class="G2" width="20"> </TD> <%} if (existeloupe) {%> <TD class="G2"><h3><img border=0 src="../bin/loupe_fond.gif"> Sélection</h3></TD> <TD class="G2" width="20"> </TD> <%} if (existeaide) {%> <TD class="G2"><h3><img border=0 src="../bin/aide_fond.gif"> Aide</h3></TD> <TD class="G2" width="20"> </TD> <%}%> </TR> </TABLE> <% } //////////////////////////////// // Dans le cas d'un LTAB, il faut fermer le cadre if(ltab) { %> </TD> </TR> </TABLE> <BR> <% } }
// Gestion de la pagination if (BEAN_DATA_USER.getMsg__numpag()>1 || !BEAN_DATA_USER.getMsg__valentpagsui().trim().equals("")) { %> <TABLE border=0 width="100%" cellpadding=0 cellspacing=0> <TR> <% short numPag = BEAN_DATA_USER.getMsg__numpag(); short repIX = BEAN_DATA_USER.getMsg__valentpagpre__ix(); %> <TD class="D2" width="45%"> <% if (numPag > 1 && repIX >1 ) { %> <A href=# onclick=<%='"'+"return PIMMainLink('-','"+BEAN_DATA_USER.getMsg__idtpag()+"','"+BEAN_DATA_USER.getMsg__valent().trim()+"','"+BEAN_DATA_USER.getMsg__valfil().trim()+"','"+BEAN_DATA_USER.getMsg__t1__valentpagpre(0).getMsg__valentpagpre().trim()+"','"+BEAN_DATA_USER.getMsg__t1__valentpagpre(1).getMsg__valentpagpre().trim()+"','"+BEAN_DATA_USER.getMsg__t1__valentpagpre(2).getMsg__valentpagpre().trim()+"','"+BEAN_DATA_USER.getMsg__t1__valentpagpre(3).getMsg__valentpagpre().trim()+"','"+BEAN_DATA_USER.getMsg__t1__valentpagpre(4).getMsg__valentpagpre().trim()+"','"+BEAN_DATA_USER.getMsg__t1__valentpagpre(5).getMsg__valentpagpre().trim()+"','"+BEAN_DATA_USER.getMsg__valentpagpre__ix()+"','"+BEAN_DATA_USER.getMsg__valentpagsui().trim()+"','"+(numPag-1)+"','"+"BEAN_DATA_USER.getL__LGRDON()"+"','','')"+'"'%>><img border=0 width=19 height=17 src="../bin/gauche_noir.gif"></A> <% } else { if (numPag > 1 && repIX == 1) { %> <img border=0 width=19 height=17 src="../bin/gauche_noir.gif"><% } } %> </TD> <TD class="C2" width="10%">Page <%=BEAN_DATA_USER.getMsg__numpag()%></TD> <TD class="G2" width="45%"> <TABLE border=0 width="100%" cellpadding=0 cellspacing=0> <TR> <TD align="left"> <%if (!BEAN_DATA_USER.getMsg__valentpagsui().trim().equals("")) {%> <A href=# onclick=<%='"'+"return PIMMainLink('+','"+BEAN_DATA_USER.getMsg__idtpag()+"','"+BEAN_DATA_USER.getMsg__valent().trim()+"','"+BEAN_DATA_USER.getMsg__valfil().trim()+"','"+BEAN_DATA_USER.getMsg__t1__valentpagpre(0).getMsg__valentpagpre().trim()+"','"+BEAN_DATA_USER.getMsg__t1__valentpagpre(1).getMsg__valentpagpre().trim()+"','"+BEAN_DATA_USER.getMsg__t1__valentpagpre(2).getMsg__valentpagpre().trim()+"','"+BEAN_DATA_USER.getMsg__t1__valentpagpre(3).getMsg__valentpagpre().trim()+"','"+BEAN_DATA_USER.getMsg__t1__valentpagpre(4).getMsg__valentpagpre().trim()+"','"+BEAN_DATA_USER.getMsg__t1__valentpagpre(5).getMsg__valentpagpre().trim()+"','"+BEAN_DATA_USER.getMsg__valentpagpre__ix()+"','"+BEAN_DATA_USER.getMsg__valentpagsui().trim()+"','"+(numPag+1)+"','"+"BEAN_DATA_USER.getL__LGRDON()"+"','','')"+'"'%>><img border=0 width=19 height=17 src="../bin/droite_noir.gif"></A> <%} else {%> <%}%> </TD> <TD class="HARD_LINK" align="right"> <%if (BEAN_DATA_USER.get_DataInt("POPUP",BEAN_DATA_USER.getMsg__out__buffer()).equals("")) {%> <a href="../htm/accueil.htm">Retour sommaire</a> <%} else {%> <%}%> </TD> </TR> </TABLE> </TD> </TR> </TABLE> <% } else { if (BEAN_DATA_USER.get_DataInt("POPUP",BEAN_DATA_USER.getMsg__out__buffer()).equals("")) {%> <TABLE border=0 width="100%"> <TR> <TD class="HARD_LINK" align="right"><a href="../htm/accueil.htm">Retour sommaire</a></TD> </TR> </TABLE> <% } }%>
<INPUT TYPE="hidden" name="NUMCHAMP" value=""> </FORM> <% //--------------------------------------------------- // Formulaire des liens //--------------------------------------------------- %> <FORM name="frmrefresh" method="post" action="/pim/servlet/com.socgen.pim.servlets.PimMainServlet" > <INPUT type="hidden" name="CODACT" value="C"> <INPUT type="hidden" name="IDTPAG" value="<%=BEAN_DATA_USER.getMsg__idtpag()%>"> <INPUT type="hidden" name="VALENT" value="<%=BEAN_DATA_USER.getMsg__valent().trim()%>"> <INPUT type="hidden" name="VALFIL" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPRE" value=""> <INPUT type="hidden" name="VALENTPAGPREIX" value=""> <INPUT type="hidden" name="VALENTPAGSUI" value=""> <INPUT type="hidden" name="NUMPAG" value=""> <INPUT type="hidden" name="LGRDON" value="<%//=BEAN_DATA_USER.getL__LGRDON()%>"> </FORM> </TD> </TR> </TABLE> <SCRIPT> function Verif_Obligatoire() { <% if(!existeselection) { %> verifOk = true; frm = document.frmmain; <% for (int i=indTxtBox-1; i>0; i--) { %> if (frm.OBL<%=i%>.value=="YES" && frm.TXTBOX<%=i%>.value=="") { verifOk = false; frm.TXTBOX<%=i%>.focus(); } <% } %> if (!verifOk) alert("Champs obligatoire non renseigné."); return verifOk; <% } else { %>return(true);<% } %> } <% if (existeselection) { %> function MAJChamp() { if (top.opener) { for (i=15; i<document.frmmain.elements.length; i++) { elm = document.frmmain.elements(i); frm = top.opener.document.frmmain; str = "TXTBOX" + top.opener.document.frmmain.NUMCHAMP.value; if (elm.checked) { for (j=0; j<frm.elements.length && frm.elements(j).name != str; j++); if (j<frm.elements.length) { top.opener.document.frmmain.elements(j).value = elm.value; } } } } } <% } %> </SCRIPT> </BODY> </HTML>
|
|
|
Cette discussion est classée dans : erreur, appel, servlet, jsp, wsad
Répondre à ce message
Livres en rapport
|
Derniers Blogs
TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 !TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 ! par ROMELARD Fabrice
Speakers: Fabrice Meillon et Stanislas Quastana Cette session est basée entièrement sur celle donnée lors de la BUILD cet hiver. Il n'y a pas d'ajout d'information en rapport avec cet évènement passé. Windows 8 Server sera intégralem...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice [HTML5] AUTOUR DU W3C : NOUVEAUX STANDARDS ET WEB MOBILE (LILLE)[HTML5] AUTOUR DU W3C : NOUVEAUX STANDARDS ET WEB MOBILE (LILLE) par Gio
Je m'y prends un peu tard je sais, mais bon je suis développeur web et donc hyper fainéant ! Toujours dans le cadre des technologies émergentes, ici HTML5, parce qu'on aime HTML5 chez Wyg , nous seront présent, le vieux ( Aurélien V.) et moi, pour pr...
Cliquez pour lire la suite de l'article par Gio [WP7] DYNAMICALLY CHANGE STARTUP PAGE[WP7] DYNAMICALLY CHANGE STARTUP PAGE par KooKiz
Let's say that you want to allow the user to customize the startup page of your application. You can easily change the startup page by editing the 'NavigationPage' attribute in the manifest file. But the manifest cannot be modified once the applicatio...
Cliquez pour lire la suite de l'article par KooKiz SESSION SILVERLIGHT 5 3D : SLIDES ET DEMOSSESSION SILVERLIGHT 5 3D : SLIDES ET DEMOS par Groc
Durant les techdays, j'ai eu le plaisir d'animer une session sur Silverlight 5 et la 3D avec Simon Ferquel. Comme promis, voici nos slides et mes démos (celles avec le viper BSG) ici et là. Pour mémoire, les démos utilisent toutes le viper BSG...
Cliquez pour lire la suite de l'article par Groc
Logiciels
DocTranslate (V3.1.0.0)DOCTRANSLATE (V3.1.0.0)DocTranslate est un traducteur de document Microsoft Word, PowerPoint et Excel. Il permet d'autom... Cliquez pour télécharger DocTranslate Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System
|