sometimes you are not able to see the obvious (code blindness) that "problem" took me nearly 2 hours
----------------------------------------------- so much to learn so less time
Kris Schneider wrote:
<code> <fmt:setBundle basename="ApplicationResources" var="ares" /> <fmt:message bundle="${ares}" key="message.example.simple" /> </code>
Quoting Christian Martin <[EMAIL PROTECTED]>:
sorry i did a mistake in my code snipplet but it does not work either.
the corrected version:
the code snippet below works fine and i can see the message for the key message.example.simple from my ResourceBundle
<code>
<fmt:bundle basename="ApplicationResources">
<fmt:message key="message.example.simple" />
</fmt:bundle>
</code>
but if i use the setBundle tag <code> <fmt:setBundle basename="ApplicationResources" var="ares" /> <fmt:message bundle="ares" key="message.example.simple" /> </code>
following error occurs
<error>
An error occurred while evaluating custom action attribute "bundle" with value "ares": Attempt to convert String "ares" to type "javax.servlet.jsp.jstl.fmt.LocalizationContext", but there is no PropertyEditor for that type (null)
</error>
thanks in advance
student from austria (working on an struts project during internship)
--------------------------------- sorry for my english but i am working hard to improve my english knowledge
Christian Martin wrote:
the code snippet below works fine and i can see the message for the key message.example.simple from my ResourceBundle
<code>
<fmt:bundle basename="ApplicationResources">
<fmt:message key="message.example.simple" />
</fmt:bundle>
</code>
but if i use the setBundle tag <code> <fmt:setBundle basename="${ApplicationResources}" var="ares" /> <fmt:message bundle="ares" key="message.example.simple" /> </code>
following error occurs
<error>
An error occurred while evaluating custom action attribute "bundle" with value "ares": Attempt to convert String "ares" to type "javax.servlet.jsp.jstl.fmt.LocalizationContext", but there is no PropertyEditor for that type (null)
</error>
---------------------------------
sorry for my english but i am working hard to improve my egnlish knowledge
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

