There are some typos in your example, are they just c/p errors? I think the span
should look like:

<span class="definition"
      title="<fmt:bundle basename="glossary"><fmt:message
key="${website.siteType}"/></fmt:bundle>">
  <fmt:message key="${website.siteType}"/>
</span>

Otherwise, if you think it's a pooling bug, you can turn it off in
$CATALINA_HOME/conf/web.xml. Look for:

<servlet>
  <servlet-name>jsp</servlet-name>
  <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
  ...
</servlet>

and add the following init param:

  <init-param>
    <param-name>enablePooling</param-name>
    <param-value>false</param-value>
  </init-param>

Quoting [EMAIL PROTECTED]:

> Sorry, my [EMAIL PROTECTED] provider reset my webmail to HTML composition.  Let me 
> try
> again:
> 
> I'm using JSTL 1.1 on Tomcat 5.0, and fmt:bundle is changing the bundle for
> the
> entire page, not just for fmt:message tags in its body.
> My web.xml:
>   <!-- fallback language is english -->
>   <context-param>
>     <param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
>     <param-value>en</param-value>
>   </context-param>
>   <!-- message file prefix is "directory" -->
>   <context-param>
>     <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
>     <param-value>directory</param-value>
>   </context-param>
> 
> The offending snippet of JSP:
> <span class="listing-meta-info">
>   <%-- BUGBUG fmt:bundle is setting bundle for page scope, not tag scope
> --%>
>   <span class="definition" title="<fmt:bundle
> basename="glossary><fmt:message>
> key="${website.siteType}"/></fmt:bundle>">
>     <fmt:message key="${website.siteType}"/>
>   </span>
> </span>
> 
> The same text appears in the title and between the spans, even if I enclose
> the
> second fmt:message in its own fmt:bundle with a different basename in order
> to
> work-around this problem.  I'm guessing this is a problem with tag reuse.
> Can anyone reproduce this, point me to a bug report, or suggest a
> work-around?
> 
> Thanks, Rick DeBay

-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to