I could see that as a reasonable request. What do you think about having a "title" and "titleKey" attribute - where the 2nd looks in Struts or JSTL's ResourceBundles?

Can you please add an enhancement request so it doesn't get lost.

Thanks,

Matt

On Jan 7, 2004, at 12:06 PM, Sven Boeckelmann wrote:


Hi,


we started to use struts menu for our application.

Great work!!

I came across some LOCALE_KEY issue, but I'm not sure maybe

it's not

not a bug but feature...

In lines 160-167 the struts-menu-2.1

net.sf.navigator.taglib.UseMenuDisplayTag

says:





if (localeKey == null) {

locale = pageContext.getRequest().getLocale();

} else {

locale = (Locale)

pageContext.findAttribute(localeKey);

}



how about chaning it to:





if (localeKey == null) {

locale = (Locale)

pageContext.findAttribute(org.apache.struts.Globals.LOCALE_KEY);

if (locale == null)

locale = pageContext.getRequest().getLocale();

} else {

locale = (Locale)

pageContext.findAttribute(localeKey);

}



We're using struts message resources, and this would allow

not to pass the local parameter when using the

menuDisplayerTag in out JSPs.



Anyway, thx for the great API!



Sven



------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ struts-menu-user mailing list [EMAIL PROTECTED] https://lists.sf.net/lists/listinfo/struts-menu-user

Reply via email to