tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Akolkar <rahul.akol...@gmail.com>
Subject Re: JSTL resource bundle issue
Date Fri, 23 Dec 2005 19:16:24 GMT
On 12/23/05, hong yuan <hyuan41@yahoo.com> wrote:
> I have the following case:
> (1) I have an framework application which has
> framework resource bundle which sits in a jar file and
> also some framework jsps like header / footer etc..
> (2) I have an application which uses the framework jar
> file and copies the framework jsp files over and has
> its own resource bundle.
>
> Can I do the following:
> For (1), I won't register the resource bundle in
> web.xml but use fmt:bundle tags.
> For (2), I will register the application resource
> bundle in its web.xml file so that I don't need to use
> fmt:bundle on each fmt:message call.
<snip/>

For both, look at fmt:setBundle. Put the bundle in the scope of
choice, and you won't need a fmt:bundle wrapper for each fmt:message
tag (use the tag's bundle attribute).

-Rahul


>
> Thanks a lot.
>
<snap/>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message