You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dan Allen <da...@mojavelinux.com> on 2003/03/16 08:41:10 UTC
possible bug in html-el
I swear I am going to lose my mind over this one. Same exact code
on two different pages one using html and one using html-el taglib.
<logic:messagesPresent>
<html:messages id="error">
<li><core:out value="${error}"/></li>
</html:messages>
</logic:messagesPresent>
If I use html-el, I get a jsp error that something is null in the
page and I trace it back to the fact that it is looking running
findAttribute() to find the ActionMessages (in this case errors)
object and does not find it and throws a jsp exception.
If I manually type in the name like so
<logic:messagesPresent>
<html:messages id="error" name="org.apache.struts.ERROR">
<li><core:out value="${error}"/></li>
</html:messages>
</logic:messagesPresent>
Then I get no null and it works. Somehow, when the tag is
processed, the "name" is getting set to empty string when it is
excluded, which I just cannot understand. It is clearly only not
working in html-el
Dan
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, <da...@mojavelinux.com>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
umm... i guess this is my signature. 8-}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: possible bug in html-el
Posted by Dan Allen <da...@mojavelinux.com>.
>
> This was a bug in RC1. It's fixed in the nightly build.
Turns out, amoungst other things, I was missing the error resource
key
member.email.missing vs member.errors.email.missing
in my application.resources file. I really wish that missing keys
would just skip over instead of killign the whole page (much harder
to debug). I tried the null setting in web.xml but it didn't seem
to change life.
Dan
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, <da...@mojavelinux.com>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"I am the GOD.....the GOD...of house!"
-- Leeloo
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: possible bug in html-el
Posted by "David M. Karr" <dm...@earthlink.net>.
>>>>> "Dan" == Dan Allen <da...@mojavelinux.com> writes:
Dan> I swear I am going to lose my mind over this one. Same exact code
Dan> on two different pages one using html and one using html-el taglib.
Dan> <logic:messagesPresent>
Dan> <html:messages id="error">
Dan> <li><core:out value="${error}"/></li>
Dan> </html:messages>
Dan> </logic:messagesPresent>
Dan> If I use html-el, I get a jsp error that something is null in the
Dan> page and I trace it back to the fact that it is looking running
Dan> findAttribute() to find the ActionMessages (in this case errors)
Dan> object and does not find it and throws a jsp exception.
Dan> If I manually type in the name like so
Dan> <logic:messagesPresent>
Dan> <html:messages id="error" name="org.apache.struts.ERROR">
Dan> <li><core:out value="${error}"/></li>
Dan> </html:messages>
Dan> </logic:messagesPresent>
Dan> Then I get no null and it works. Somehow, when the tag is
Dan> processed, the "name" is getting set to empty string when it is
Dan> excluded, which I just cannot understand. It is clearly only not
Dan> working in html-el
This was a bug in RC1. It's fixed in the nightly build.
--
===================================================================
David M. Karr ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net ; SCJP; SCWCD
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org