Title: Message
tried that, didn't work
Now I tried: <ww:i18n name="'com.me.test.Test'">
(com.me.test.Test in both single and doble quotes) ... and I've got another exception:
 
java.lang.NullPointerException
at com.opensymphony.xwork.TextProviderSupport.getText(TextProviderSupport.java:117)
at com.opensymphony.webwork.views.jsp.ui.TextTag.doEndTag(TextTag.java:138)
at org.apache.jsp.newNote_jsp._jspx_meth_ww_text_0(newNote_jsp.java:185)
at org.apache.jsp.newNote_jsp._jspx_meth_ww_i18n_0(newNote_jsp.java:85)
at org.apache.jsp.newNote_jsp._jspService(newNote_jsp.java:56)
(...)
 
This suggests that the bundle has been found...
Any ideas ?
----- Original Message -----
Sent: Wednesday, March 03, 2004 3:41 PM
Subject: RE: [OS-webwork] i18n tag - what am i doing wrong ?

Try replacing the "."s with "/" like this:
 
<ww:i18n name="com/me/test/Test">
 
Jason
-----Original Message-----
From: wojtek [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 03, 2004 5:20 AM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] i18n tag - what am i doing wrong ?

I have a jsp page that looks like this:
 
<[EMAIL PROTECTED] contentType="text/html;charset=ISO-8859-2"%>
<[EMAIL PROTECTED] prefix="ww" uri="webwork"%>
<ww:i18n name="com.me.test.Test">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2">
        <title><ww:text name="'notesList.pageTitle'"/></title>
        <link rel="stylesheet" type="text/css" href="">
        <script src=""></script>
    </head>
    <body></body>
</ww:i18n>
 
... and a properties file:
 
notesList.pageTitle=Lista notatek
 
The properties file's name is Test and it's located in WEB-INF/classes/com/me/test.
The problem is that when the jsp page is being rendered I get an exception:
 
javax.servlet.ServletException: Could not find the bundle com.me.test.Test
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
(...)
 
So ... where should I put the properties file ? Or maybe I'm using the i18n tag in an inapropriate way ?
 
wojtek

Reply via email to