Re: Application resources and logic:notPresent
Hi Jeff, is it because name=org.apache.struts.action.MESSAGE is the class name of the messages when you should specify the attribute name that class has been stored under? (It'll be defined as a constant somewhere but I don't know where off-hand). Keith. --- Jeff Oberlander [EMAIL PROTECTED] wrote: I am seeing conflicting behavior with application resources. This is basic stuff, but I haven't found an answer in the archives. First, in my index.jsp I can do the following: bean:message key=test.message/ It successfully displays my test text message from my ApplicationResources file. But, when I also try to execute the logic:notPresent code as given in the example: logic:notPresent name=org.apache.struts.action.MESSAGE scope=application font color=red ERROR: Application resources not loaded -- check servlet container logs for error messages. /font /logic:notPresent It results in displaying the red not loaded message. How can it be that this logic:notPresent thinks the resources aren't there, but the bean:message can retrieve them just fine? Thanks much Jeff http://www.xns.org/=jeffoberlander -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Application resources and logic:notPresent
Thanks Keith. It turns out that the name=org.apache.struts.action.MESSAGE was ok. Turns out I was simply missing the taglib uri=/WEB-INF/tlds/struts-logic.tld. Being new to struts, I would have guessed that would've given me a jsp compile error but it doesn't. -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 3:54 AM To: Struts Users Mailing List Subject: Re: Application resources and logic:notPresent Hi Jeff, is it because name=org.apache.struts.action.MESSAGE is the class name of the messages when you should specify the attribute name that class has been stored under? (It'll be defined as a constant somewhere but I don't know where off-hand). Keith. --- Jeff Oberlander [EMAIL PROTECTED] wrote: I am seeing conflicting behavior with application resources. This is basic stuff, but I haven't found an answer in the archives. First, in my index.jsp I can do the following: bean:message key=test.message/ It successfully displays my test text message from my ApplicationResources file. But, when I also try to execute the logic:notPresent code as given in the example: logic:notPresent name=org.apache.struts.action.MESSAGE scope=application font color=red ERROR: Application resources not loaded -- check servlet container logs for error messages. /font /logic:notPresent It results in displaying the red not loaded message. How can it be that this logic:notPresent thinks the resources aren't there, but the bean:message can retrieve them just fine? Thanks much Jeff http://www.xns.org/=jeffoberlander -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Application resources and logic:notPresent
I've hit that trap too. It seems if the JSP compiler doesn't understand the tag it sends it down to the browser. (JSP probably doesn't even understand HTML). If the browser doesn't understand it it ignores it content directly under it but evaluates nested tags. Anybody know of any browser logging that can be switched on that would warn us about this sort of thing? Keith. --- Jeff Oberlander [EMAIL PROTECTED] wrote: Thanks Keith. It turns out that the name=org.apache.struts.action.MESSAGE was ok. Turns out I was simply missing the taglib uri=/WEB-INF/tlds/struts-logic.tld. Being new to struts, I would have guessed that would've given me a jsp compile error but it doesn't. -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 3:54 AM To: Struts Users Mailing List Subject: Re: Application resources and logic:notPresent Hi Jeff, is it because name=org.apache.struts.action.MESSAGE is the class name of the messages when you should specify the attribute name that class has been stored under? (It'll be defined as a constant somewhere but I don't know where off-hand). Keith. --- Jeff Oberlander [EMAIL PROTECTED] wrote: I am seeing conflicting behavior with application resources. This is basic stuff, but I haven't found an answer in the archives. First, in my index.jsp I can do the following: bean:message key=test.message/ It successfully displays my test text message from my ApplicationResources file. But, when I also try to execute the logic:notPresent code as given in the example: logic:notPresent name=org.apache.struts.action.MESSAGE scope=application font color=red ERROR: Application resources not loaded -- check servlet container logs for error messages. /font /logic:notPresent It results in displaying the red not loaded message. How can it be that this logic:notPresent thinks the resources aren't there, but the bean:message can retrieve them just fine? Thanks much Jeff http://www.xns.org/=jeffoberlander -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]