Re: Message resources, as usual
Forgive me for my insisting on the subject. Just to be sure nothing is escaping from my attention, when I try and modify the jsp bean:message tag, telling it to use a non-defined RB ("aares1" instead of "res1"), the exception is -- javax.servlet.jsp.JspException: Cannot find message resources under key aares1 at org.apache.struts.util.RequestUtils.message(RequestUtils.java:939) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295) at org.apache.jsp.messagestest_jsp._jspx_meth_bean_message_0(messagestest_jsp.j ava:131) at org.apache.jsp.messagestest_jsp._jspService(messagestest_jsp.java:83) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) ...ETCETERA -- This makes me think that originally the resource bundle was really found, as else the exception would be like the one displayed above, and not the "Missing message for key string1" that I got. I'll take a look at what the bean:message tag is doing, to see if I get a clue. Albert. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Message resources, as usual
> > Just a quick suggestion, this shouldn't make a difference, but change > this: > > string1 = res1 str1 > > string2 = res1 str2 > > > > > > to this: > > string1= res1 str1 > > string2= res1 str2 As far as I know they are the same, as both halves of the equality are trimmed when parsed, and formerly (when using one single RB) they worked. Anyway, I've tried, and it's still the same. Thank you anyway. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Message resources, as usual
Hate to be the one to point this out, but they are both the same ;-) - Original Message - From: "James Mitchell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, February 14, 2003 2:54 PM Subject: Re: Message resources, as usual > Just a quick suggestion, this shouldn't make a difference, but change this: > string1 = res1 str1 > string2 = res1 str2 > > > to this: > string1= res1 str1 > string2= res1 str2 > > > Other than that I can't imagine what the problem is. This obviously works > in the example app. > > Good Luck. > > -- > James Mitchell > > > > > > - Original Message - > From: "Albert Moliner" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Friday, February 14, 2003 7:09 AM > Subject: Re: Message resources, as usual > > > > > > Mmm, sorry, I'd better show you a better stack trace, caught "manually" in > > the jsp by me: > > > > --- > > javax.servlet.jsp.JspException: Missing message for key string1 > > at > > org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:298) > > at > > > org.apache.jsp.messagestest_jsp._jspx_meth_bean_message_0(messagestest_jsp.j > > ava:131) > > at > > org.apache.jsp.messagestest_jsp._jspService(messagestest_jsp.java:83) > > at > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 > > 04) > > at > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) > > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > ... AND MORE > > > > > > > > - > > 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Message resources, as usual
Just a quick suggestion, this shouldn't make a difference, but change this: string1 = res1 str1 string2 = res1 str2 to this: string1= res1 str1 string2= res1 str2 Other than that I can't imagine what the problem is. This obviously works in the example app. Good Luck. -- James Mitchell - Original Message - From: "Albert Moliner" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, February 14, 2003 7:09 AM Subject: Re: Message resources, as usual > > Mmm, sorry, I'd better show you a better stack trace, caught "manually" in > the jsp by me: > > --- > javax.servlet.jsp.JspException: Missing message for key string1 > at > org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:298) > at > org.apache.jsp.messagestest_jsp._jspx_meth_bean_message_0(messagestest_jsp.j > ava:131) > at > org.apache.jsp.messagestest_jsp._jspService(messagestest_jsp.java:83) > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 > 04) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > ... AND MORE > > > > - > 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: Message resources, as usual
Mmm, sorry, I'd better show you a better stack trace, caught "manually" in the jsp by me: --- javax.servlet.jsp.JspException: Missing message for key string1 at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:298) at org.apache.jsp.messagestest_jsp._jspx_meth_bean_message_0(messagestest_jsp.j ava:131) at org.apache.jsp.messagestest_jsp._jspService(messagestest_jsp.java:83) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) ... AND MORE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]