You can also expose your bundle as a var though w/ JSTL so you don't have to
nest everything that way.

-----Original Message-----
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 11:45 AM
To: Struts Users Mailing List
Subject: JSTL messages & bundles Gotcha


On for the archives. I was on the point of sending it as a question but
resolved it, so here is the answer.

I was having a hard time configuring JSTL to find my
ApplicationResources.properties file.

According to the documentation, I could do either of these:

<context-param>
   <param-name>
     javax.servlet.jsp.jstl.fmt.localizationContext
   </param-name>
   <param-value>ApplicationResources.properties</param-value>
</context-param>

in web.xml
or

<fmt:bundle basename="ApplicationResources.properties"/>

in my JSP.

Neither worked for me for an hour or so until I realised:

You don't put ".properties" on the end &

fmt:bundle should nest all the fmt tags that will refer to it.

Adam

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


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



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

Reply via email to