The reason you need the Action is to put a TextProvider in the
ValueStack to call getText() against... 

I wonder now if we should put a default TextProvider in the root of the
ValueStack when it's created that will just use getDefaultText() and not
try to find any class-specific texts. Then, if you put a TextProvider in
on top of it (such as an Action which extends ActionSupport), then that
default will be masked. 

> -----Original Message-----
> From: Sakke Wiik [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 08, 2004 5:20 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] i18n tag (newbie)
> 
> 
> I also struggled witn i18n for a while until I decided to use 
> the i18n interceptor. The code can be found here: 
> http://wiki.opensymphony.com/space/Transparent+web-app+I18N
> This means all actions are configured to run this 
> interceptor. I also have a forwardaction to run basic 
> forwards to jsp-pages through this interceptor. Otherwise the 
> i18n jsp-tags won't find the values. Don't ask me why.
> 
> Cheers,
> Sakke
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] 
> Behalf Of 
> > Donnerstag, Juergen
> > Sent: 5. maaliskuuta 2004 21:30
> > To: '[EMAIL PROTECTED]'
> > Subject: [OS-webwork] i18n tag (newbie)
> >
> >
> > Sorry for this stupid question. But I couldn't figure out how to do 
> > it. I've read the FAQ note about using a listener, but that is not 
> > what I'm up to.
> >
> > My properties files are located in package com.test.i18n 
> and are named 
> > i18n_testapp.properties and i18n_testapp_de.properties. 
> According to 
> > the documentation i18n tag may be used to load an 
> additional resource 
> > bundle.
> >
> > <ww:i18n name="com.eds.asset.i18n.i18n_adminapp" />
> > <@ww.text name="header.menu.home.tooltip" />
> >
> > But i18n tag generates an exception that it's no finding 
> the resource 
> > bundle. I checked the taglib source and I got the 
> impression that i18n 
> > name attribute is not the bundle's name but a ResourceBundle object 
> > already pushed onto the OGNL stack. Any idea how to load the
> > ResourceBundle and push
> > it on the stack?
> >
> > thanks for your help
> > Juergen
> >
> >
> > -------------------------------------------------------
> > 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_id=1470&alloc_id=3638&op=click
> > _______________________________________________
> > Opensymphony-webwork mailing list 
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >
> 
> 
> 
> -------------------------------------------------------
> 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_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
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
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to