Franz-
courtesy
http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL5.html
could you try
<c:if test="${!empty param.org.apache.struts.action.ERROR}">
states the request parameter org.apache.struts.action.ERROR is NOT empty
Viel Gluck,
Martin-
----- Original Message -----
From: "Franz-Josef Herpers" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Wednesday, June 15, 2005 9:32 AM
Subject: Replace logic:messagesPresent with JSTL tags
Hi,
I'm using the the <html-el:messages> tag to print out validation error
messages. Now I want to replace the Struts logic tags with JSTL tags.
Hence I wrote:
<c:if test="${org.apache.struts.action.ERROR != null}">
<ul>
<html-el:messages id="error" bundle="ERRORS_KEY">
<li>
<span style="color:red">
<c:out value="${error}" escapeXml="false"/>
</span>
</li>
</html-el:messages>
</ul>
</c:if>
But error messages are not shown even if there is definitely an request
attribute with the name org.apache.struts.action.ERROR.
And even more strange for me is the fact that it works if i use scriptlets
and do it this way:
<% if (request.getAttribute("org.apache.struts.action.ERROR") != null) {%>
<ul>
<html-el:messages id="error" bundle="ERRORS_KEY">
<li>
<span style="color:red">
<c:out value="${error}" escapeXml="false"/>
</span>
</li>
</html-el:messages>
</ul>
<%}%>
Thanks in advance for any hints to solve this little problem.
Regards
Franz
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]