Bonjour,
J'ai une jsp qui fonctionnait parfaitement mais dès que j'ajoute les librairies JTSL suivantes, ce n'est plus le cas :
1 2
| <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> |
Voici l'erreur que je chope :
Caused by: org.apache.jasper.JasperException: <h3>Validation error messages from TagLibraryValidator for c in /html/deposit/riskassets.jsp</h3><p>null: org.xml.sax.SAXParseException: Attribute "style" was already specified for element "html:select".</p>
J'ai 2 html:select et en enlevant la propriété style, ça refonctionne. Voici les select :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <td class="noBorder" align="left">
<html:select property="riskSortOrder" style="font-color:00CC00; font-size:9px;" onchange="document.all.depositForm.submit();">
<html:option value="1"><bean:message key="select.productfamily" bundle="DepositResources" /></html:option>
<html:option value="2"><bean:message key="select.category" bundle="DepositResources" /></html:option>
<html:option value="3"><bean:message key="select.riskassets.amountEUR" bundle="DepositResources" /></html:option>
<html:option value="4"><bean:message key="select.riskassets.percentage" bundle="DepositResources" /></html:option>
</html:select>
</td>
</tr>
</table>
<html:hidden property="onlyRiskAssets" value="true" />
</td>
<td class="noBorder" colspan="2">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class="noBorder" align="right">
<html:select style="width: 260px;" property="printholder" style="font-color:00CC00; font-size:9px;" onchange="document.all.depositForm.submit();">
<html:option value="1"><bean:message key="select.titulaire" bundle="DepositResources" /></html:option>
<html:option value="2"><bean:message key="select.titulaireorco" bundle="DepositResources" /></html:option>
<html:option value="3"><bean:message key="select.titulaireandcoormandat" bundle="DepositResources" /></html:option>
</html:select>
</td> |
On dirait qu'il y a un conflit entre la librairie struts1 html et la libraire JSTL-Core... Mais je ne trouve rien sur le net.... 
Merci d'avance pour vos réponses
Partager