> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Rob Moore
> Sent: Thursday, March 18, 2004 1:08 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [struts-menu] attaching 'struts' menu to non-struts apps
> 
> 
> Regarding the listener: Ah, yes, I see. I had assumed you'd 
> taken Dan's change for the configuration.

I've integrated both Dan's change (as a MenuLoader) for Spring, as well
as the ContextListener for non-Struts, non-Spring apps.

> 
> Regarding resource bundles: I recall that you suggested that 
> JSTL might offer a solution. However, it seems like that 
> would make a dependency on JSTL that might not be attractive 
> to everyone (I'm fine with it, but just thought it would be 
> worth considering). I think the common denominator of vanilla 
> Java resource bundles makes sense, but I'm unsure if there is 
> a draw back to it over the web-specific approach.

I took your advice and implemented this yesterday.  Here's my commit
message on ResourceBundles:

Added support for JSTL's ResourceBundle in EL tag.  Also added support
for regular ol' ResourceBundle in regular tag.  The EL tag defaults to
JSTL's ResourceBundle if no "bundle" attribute is specified, and to
Struts' MessageResources if that's not found.  The regular tag defaults
to Struts' MessageResources if no bundle is specified.  All bad bundle
attributes result in a log.error() rather than a JspException.

I tested all this stuff in a Spring/Tiles application.  struts.jar is in
WEB-INF/lib for Tiles, but it's not being used anywhere else.

Matt

> 
> Rob
> 
> -----Original Message-----
> From: Matt Raible [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 18, 2004 1:52 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [struts-menu] attaching 'struts' menu to non-struts apps
> 
> 
> The Listener is for loading menu definitions from 
> WEB-INF/menu-config.xml rather than using the Struts Plugin.  As for 
> making it ResourceBundle agnostic - I'd be willing to help - I'm just 
> not sure where changes need to be made.
> 
> Matt
> 
> 
> On Mar 18, 2004, at 7:51 AM, Rob Moore wrote:
> 
> > Thanks, Matt. I'm behind a firewall, so I'll need to work on getting
> > the cvs port open first. Could you provide a little in the way of 
> > detail about how you envisioned this being used? Looking at the 
> > current release source code and the modifications by Dan, it looks 
> > like I would need to fix the classes in the displayer 
> package and the 
> > UseMenuDisplayerTag so they don't reference the Struts message 
> > resource class. I'm not sure what your listener adds to the mix.
> >
> > Rob
> >
> > -----Original Message-----
> > From: Matt Raible [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 17, 2004 8:07 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [struts-menu] attaching 'struts' menu to 
> non-struts apps
> >
> >
> > I added a MenuContextListener last week in CVS (in the menu 
> package) - 
> > you might want to try using that.  I don't believe I've 
> fully made it 
> > struts-agnostic - but I'd like to - I just don't have any 
> non-struts 
> > apps (yet) to test it on.
> >
> > Matt
> >
> > On Mar 17, 2004, at 3:59 PM, Rob Moore wrote:
> >
> >> Just wanted to check in to see the status of this. Dan mentioned 
> >> something about providing a solution, so I thought I'd see if it 
> >> exists and, if so, where it might be found.
> >>
> >> Thanks,
> >>
> >> Rob
> >>
> >>
> >> -------------------------------------------------------
> >> This SF.Net email is sponsored by: IBM Linux Tutorials
> >> Free Linux tutorial presented by Daniel Robbins, President 
> and CEO of 
> >> GenToo technologies. Learn everything from fundamentals to system 
> >> administration.http://ads.osdn.com/?ad_id70&alloc_id638&opĚk
> >> _______________________________________________
> >> struts-menu-user mailing list
> >> [EMAIL PROTECTED] 
> >> https://lists.sf.net/lists/listinfo/struts-menu-user
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IBM Linux Tutorials
> > Free Linux tutorial presented by Daniel Robbins, President 
> and CEO of 
> > GenToo technologies. Learn everything from fundamentals to system 
> > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick
> > _______________________________________________
> > struts-menu-user mailing list
> > [EMAIL PROTECTED] 
> > https://lists.sf.net/lists/listinfo/struts-menu-user
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IBM Linux Tutorials
> > Free Linux tutorial presented by Daniel Robbins, President 
> and CEO of 
> > GenToo technologies. Learn everything from fundamentals to system 
> > administration.http://ads.osdn.com/?ad_id70&alloc_id638&opĚk
> > _______________________________________________
> > struts-menu-user mailing list
> > [EMAIL PROTECTED] 
> > https://lists.sf.net/lists/listinfo/struts-menu-user
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President 
> and CEO of GenToo technologies. Learn everything from 
> fundamentals to system 
> administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick
> _______________________________________________
> struts-menu-user mailing list
> [EMAIL PROTECTED] 
> https://lists.sf.net/lists/listinfo/struts-> menu-user
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President 
> and CEO of GenToo technologies. Learn everything from 
> fundamentals to system 
> administration.http://ads.osdn.com/?ad_id70&alloc_id638&opĚk
> _______________________________________________
> struts-menu-user mailing list
> [EMAIL PROTECTED] 
> https://lists.sf.net/lists/listinfo/struts-> menu-user
> 




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
struts-menu-user mailing list
[EMAIL PROTECTED]
https://lists.sf.net/lists/listinfo/struts-menu-user

Reply via email to