• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ResourceBundle in XSL

 
Krupa Eng
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am getting a "missingResource Exception :Can't find bundle with baseName resources.myresources. But the same works from within a JSP.

Can somebody help?

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:java="java" >

<xsl:variable name="resource"
select="java:util.ResourceBundle.getBundle('resources.myresources')"/>

<xsl:value-of select="java:getString($resource,'mykey')"/>


From JSP the following works

java.util.ResourceBundle.getBundle('resources.myresources').getString("mykey");

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic