Re: trying to implement 2 resource bundles and getting odd errors

2004-09-22 Thread Bill Siggelkow
I am pretty sure that you must have one of the message-resources defined 
without a key (essentially being the default bundle).

-Bill Siggelkow
Janice wrote:
So, yes, I waited until the very last minute to split my resource bundle
into 2 in order to keep maintenance simpler.  But some pages in my app are
now spitting the dreaded:
Cannot find message resources under key org.apache.struts.action.MESSAGE
at me.  Most of the pages are fine, and all of my .jsps are using
bean:message /, so I'm thinking I've got things set up correctly for the
most part.
Has anyone else run into this?  What on earth am I missing?
Here's a bit from struts-config.xml:
  message-resources key=default parameter=ApplicationResources/
  message-resources key=reports parameter=ReportResources/
I had previously been using just the first one, so I added
'bundle=default' or 'bundle=reports' to everywhere I was using
bean:message /.  I'm thinking that there's some implicit stuff happening
now that I don't understand.
Here's an example of a spot that chokes:
Here's the reference to the code in the error:
at _jsp._admin._persorg._org__list._jspService(_org__list.java:251)
[SRC:/jsp/admin/persOrg/org_list.jsp:43]
Here's lines 42/3 from the .jsp:
42:tr class=body % if (++rowcount % 2 == 0) { % bgcolor =
bean:message bundle=default key=style.altColour/; % } %
43: td valign=topa
href=%=request.getContextPath()
%/organization.do?action=showFormaddEdit=editid=bean:write name=widget
property=id / onMouseOut=MM_swapImgRestore()
onMouseOver=MM_swapImage('Image%=rowcount
%','','../../images/app/icon_arrow_rtcol1.gif',1)img
src=../../images/app/icon_arrow_rtcol.gif name=Image%=rowcount %
width=18 height=17 border=0/a/td
And here's lines 251/2 in the .java:
__jsp_taghandler_12.setBundle(default);
__jsp_taghandler_12.setKey(style.altColour);
That key does exist in ApplicationResources and it is successfully used by
several other .jsp pages.  Line 42 in the .jsp is used several times in
different files.
I don't know whether I've provided the correct information.  I'd be happy to
provide some more if I thought it might help me fix it.  I'm just about
ready to go with one file again, but I'd like to solve this first!
Oh, I'm using struts 1.1.
Thanks in advance!
Janice

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


trying to implement 2 resource bundles and getting odd errors

2004-09-21 Thread Janice
So, yes, I waited until the very last minute to split my resource bundle
into 2 in order to keep maintenance simpler.  But some pages in my app are
now spitting the dreaded:
Cannot find message resources under key org.apache.struts.action.MESSAGE
at me.  Most of the pages are fine, and all of my .jsps are using
bean:message /, so I'm thinking I've got things set up correctly for the
most part.

Has anyone else run into this?  What on earth am I missing?

Here's a bit from struts-config.xml:
  message-resources key=default parameter=ApplicationResources/
  message-resources key=reports parameter=ReportResources/

I had previously been using just the first one, so I added
'bundle=default' or 'bundle=reports' to everywhere I was using
bean:message /.  I'm thinking that there's some implicit stuff happening
now that I don't understand.

Here's an example of a spot that chokes:

Here's the reference to the code in the error:

at _jsp._admin._persorg._org__list._jspService(_org__list.java:251)
[SRC:/jsp/admin/persOrg/org_list.jsp:43]

Here's lines 42/3 from the .jsp:
42:tr class=body % if (++rowcount % 2 == 0) { % bgcolor =
bean:message bundle=default key=style.altColour/; % } %
43: td valign=topa
href=%=request.getContextPath()
%/organization.do?action=showFormaddEdit=editid=bean:write name=widget
property=id / onMouseOut=MM_swapImgRestore()
onMouseOver=MM_swapImage('Image%=rowcount
%','','../../images/app/icon_arrow_rtcol1.gif',1)img
src=../../images/app/icon_arrow_rtcol.gif name=Image%=rowcount %
width=18 height=17 border=0/a/td

And here's lines 251/2 in the .java:

__jsp_taghandler_12.setBundle(default);
__jsp_taghandler_12.setKey(style.altColour);

That key does exist in ApplicationResources and it is successfully used by
several other .jsp pages.  Line 42 in the .jsp is used several times in
different files.

I don't know whether I've provided the correct information.  I'd be happy to
provide some more if I thought it might help me fix it.  I'm just about
ready to go with one file again, but I'd like to solve this first!

Oh, I'm using struts 1.1.

Thanks in advance!

Janice


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]