That was it, missing some JSTL TLD's. Thanks. On Wed, Jan 21, 2004 at 02:24:27PM -0700, Richard Hightower wrote: > Try this to see if it works: > > <logic:messagesPresent> > <html:messages id="error"> > <%=error%> > </html:messages> > </logic:messagesPresent> > > If the above works, make sure you imported the right tld for core. > Core has a JSTL EL tld (c.tld), and a runtime expression tld (crt.tld??) > > Howsa 'bout showing your tablib import directive and your web.xml taglibs > that you have declared too.... > > > At least the above will spit the diff... i.e., let you know if the problem > is with the JSP or the resource bundle. > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 21, 2004 1:34 PM > To: [EMAIL PROTECTED] > Subject: Form validation errors > > > I am having trouble accessing messages from a resource bundle when form > validation fails. > > In a jar file under the WEB-INF/lib directory I have the following: > > net/neospire/extranet/resources/Application.properties > > inside the properties file I have the following: > > errors.required={0} is required > > and in my struts-config.xml I have: > > <message-resources > parameter="net.neospire.extranet.resources.Application"/> > > however when I do the following in a JSP: > > <logic:messagesPresent> > <html:messages id="error"> > <c:out value="${error}"/><br/> > </html:messages> > </logic:messagesPresent> > > I just get "${error}" output once for each required field left blank > instead of the message from the resource bundle. > > -- > Sean Bruton <[EMAIL PROTECTED]> > Senior Engineer Network Services > NeoSpire, Inc. www.neospire.net > > --------------------------------------------------------------------- > 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] > >
-- Sean Bruton <[EMAIL PROTECTED]> Senior Engineer Network Services NeoSpire, Inc. www.neospire.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

