Re: Replace logic:messagesPresent with JSTL tags
Franz- courtesy http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL5.html could you try 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" Sent: Wednesday, June 15, 2005 9:32 AM Subject: Replace logic:messagesPresent with JSTL tags Hi, I'm using the the tag to print out validation error messages. Now I want to replace the Struts logic tags with JSTL tags. Hence I wrote: 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) {%> <%}%> 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]
Re: Replace logic:messagesPresent with JSTL tags
Hi John, > I think you should be able to use: ${!empty requestScope['org.apache.struts.action.ERROR']} as your test, since requestScope is a Map object. Thank you. That's what I forgot: The escaping because of the periods in the request attribute name. Regards Franz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Replace logic:messagesPresent with JSTL tags
Well, normally for a request attribute I'd just use ${requestScope.attributeName}, but you can't do this here since there are periods in the attribute name. I think you should be able to use: ${!empty requestScope['org.apache.struts.action.ERROR']} as your test, since requestScope is a Map object. John > -Original Message- > From: Franz-Josef Herpers [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 15, 2005 6:33 AM > To: Struts Users Mailing List > Subject: Replace logic:messagesPresent with JSTL tags > > Hi, > > I'm using the the tag to print out > validation error messages. Now I want to replace the Struts > logic tags with JSTL tags. > Hence I wrote: > > > > > > > > > > > > > > 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) {%> > > > > > > > > > > <%}%> > > 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]
Replace logic:messagesPresent with JSTL tags
Hi, I'm using the the tag to print out validation error messages. Now I want to replace the Struts logic tags with JSTL tags. Hence I wrote: 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) {%> <%}%> 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]