You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kelly Goedert <ke...@nexxera.com> on 2004/01/20 17:49:16 UTC
jstl problem
Hi all,
I have a form that when is called causes the following exception:
javax.servlet.ServletException: javax/servlet/jsp/jstl/core/ConditionalTagSupport
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
The form is this:
<%@ taglib uri="struts/bean-el" prefix="bean" %>
<%@ taglib uri="struts/html-el" prefix="html" %>
<%@ taglib uri="struts/logic-el" prefix="logic" %>
<%@ taglib uri="jstl/c" prefix="c" %>
<html>
<head>
<link href="<html:rewrite page="/pages/style/default.css" />"
rel="stylesheet" type="text/css">
<title><bean:message key="title.usuario.usuarioform"/></title>
</head>
<body>
<c:choose>
<c:when test="${usuarioForm.map.methodToCall == 'insert'}">
<h1><bean:message key="title.usuario.insert"/></h1>
</c:when>
<c:otherwise>
<h1><bean:message key="title.usuario.update"/></h1>
</c:otherwise>
</c:choose>
<logic:messagesPresent>
<span id="errorsHeader"><bean:message
key="errors.validation.header"/></span>
<html:messages id="error">
<li><c:out value="${error}"/></li>
</html:messages>
<hr>
</logic:messagesPresent>
<logic:messagesPresent message="true">
<html:messages id="message" message="true">
<span id="success"><c:out value="${message}"/></span><br>
</html:messages>
</logic:messagesPresent>
<html:form action="usuarioAction" focus="login">
<table>
<tr>
<td >Login:</td>
<td><html:text property="login"/></td>
</tr>
<tr>
<td>Senha:</td>
<td><html:text property="senha"/></td>
</tr>
<tr>
<td>Confirmação da Senha:</td>
<td><html:text property="confSenha"/></td>
</tr>
<!-- Combobox
<tr>
<td>Papéis:</td>
<td>
<html:select name="usuarioForm" property="papeis">
<html:options collection="roles" property="id"
labelProperty="papeis"/>
</html:select>
</td>
</tr>
-->
<tr>
<td>Papéis:</td>
<td>
<c:forEach var="papel" items="${roles}">
<html:multibox name="usuarioForm" property="roles">
<c:out value="${papel.roles}"/>
</html:multibox>
<c:out value="${papeis.description}"/>
</c:forEach>
</td>
</tr>
</table>
<html:hidden name="usuarioForm" property="methodToCall"/>
<c:choose>
<c:when test="${usuarioForm.map.methodToCall == 'insert'}">
<html:submit><bean:message key="button.submit"/></html:submit>
</c:when>
<c:otherwise>
<html:submit><bean:message key="button.update"/></html:submit>
</c:otherwise>
</c:choose>
</html:form>
</body>
</html>
The .tld files are in WEB-INF directory and mapped in web.xml.
What may be wrong?
Thanks
Kelly.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org