In this case I suspect the problem is that the basename attribute in the
<fmt:bundle /> tag does not have the full path to the file. e.g. it
should be something like
basename="myapp.view.resources.ApplicationResources"
Regards
Duncan Mills
Jeff Beal wrote:
Rudi Doku wrote:
Hello,
I'm new to struts. I have added the following string
to teh ApplicationResources.propertiesfile :
topic.label=Topic
I am trying to display this label on the page without
very much success. My page looks like this:
<%@ page contentType="text/html;charset=UTF-8"
language="java"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt"
prefix="fmt"%>
<snip/>
<fmt:message key="topic.label"/><input
type="text" name="description"/>
You're using a JSTL tag (fmt:message) not a Struts tag to write the
message. You'll need to look in the JSTL documentation to see how to
point the JSTL tag to the resource bundle you want to use.
-- Jeff
------------------------------------------------------------------------
---------------------------------------------------------------------
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]