You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pedro Salgado <sa...@04web.com> on 2004/01/17 01:48:08 UTC

JSTL: equivalent for errors and javascript

  Does anyone know the JSTL equivalent for:

<logic:messagesPresent>
   <fmt:message key='errors.header'/>
   <ul class="err">
   <html:messages id="error">
      <li><bean:write name="error" bundle="ERROR_BUNDLE"/></li>
   </html:messages>
   </ul>
   <fmt:message key='errors.footer'/>
</logic:messagesPresent>

  And

  <html:javascript/>

  ?

  What I need is to know where the errors are stored... ?
  The equivalent must be something like:

<c:if test='${request.???????}'>
   <fmt:message key='errors.header'/>
   <ul class="err">
   <c:forEach items='${request.?????}' var='err'>
      <li><fmt:message key='${err.??????}'/></li>
   </html:messages>
   </ul>
   <fmt:message key='errors.footer'/>
</c:forEach>

  For the javascript version... I think it would be something like:

  <c:out value='${????.????}'/>

Pedro Salgado


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org