Re: working with resource.properties files in JSTL & Struts

2002-11-08 Thread Kris Schneider
Ah, right. That's much simpler for Struts 1.0.2. Except for the fact that 
Struts has a hand in how locale is determined. For example, the  tag 
or any piece of application code can set the session attribute named 
Action.LOCALE_KEY to a Locale instance. If set, the  tag uses 
this when it retrieves a message. So, I guess you'd have to add something like:




If the value attribute of  is null or empty, the runtime's 
default Locale is used. I believe this matches the  behavior if 
Action.LOCALE_KEY is not set.

Of course, this all just pertains to the case where  attributes 
for bundle and locale are not used.

With 1.1, it looks like things get even hairier...

Quoting Sven Bischoff <[EMAIL PROTECTED]>:

> just place a context-param element in your web.xml as a child of .
> 
> 
> 
>   javax.servlet.jsp.jstl.fmt.localizationContext
>   ApplicationResources
> 
> 
> Sven
> 
> 
> Anthony Mutiso 2 wrote:
> > What is recognized way to get JSTL  tag to share the same
> > resources bundle as Struts  tag?
> > 
> > Thanks
> > 
> > Anthony
> > 
> > --
> > To unsubscribe, e-mail:  
> 
> > For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


-- 
Kris Schneider 
D.O.Tech   

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: working with resource.properties files in JSTL & Struts

2002-11-08 Thread Sven Bischoff
just place a context-param element in your web.xml as a child of .



 javax.servlet.jsp.jstl.fmt.localizationContext
 ApplicationResources


Sven


Anthony Mutiso 2 wrote:

What is recognized way to get JSTL  tag to share the same
resources bundle as Struts  tag?

Thanks

Anthony

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: working with resource.properties files in JSTL & Struts

2002-11-07 Thread Kris Schneider
I think something like this worked for me with Struts 1.0.2. Not sure if it 
will still work with 1.1.









Quoting Anthony Mutiso 2 <[EMAIL PROTECTED]>:

> What is recognized way to get JSTL  tag to share the same
> resources bundle as Struts  tag?
> 
> Thanks
> 
> Anthony
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


-- 
Kris Schneider 
D.O.Tech   

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




working with resource.properties files in JSTL & Struts

2002-11-07 Thread Anthony Mutiso 2
What is recognized way to get JSTL  tag to share the same
resources bundle as Struts  tag?

Thanks

Anthony

--
To unsubscribe, e-mail:   
For additional commands, e-mail: