You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mark Kettner <ma...@fredhopper.com> on 2001/09/27 17:57:26 UTC

Can't use html:errors with orion-1.5.2

Hi All,

I've tried to use html:errors with struts (don't know the exact version, 
but it already
includes the indexed property). However, it doesn't work on orion-1.5.2, 
because it
can't read the properties file. However, if I make the following change to
org.apache.struts.util.PropertyMessageResources.java

 is = 
Thread.currentThread().getContextClassLoader().getResourceAsStream(name);

instead of

is = this.getClass().getClassLoader().getResourceAsStream(name)

everything works great. Could this change be implemented in the next 
version or are there
disadvantages with using the Thread solution?

Mark

-- 
--o-o----------
Mark Kettner
http://www.fredhopper.com
Amsterdam, The Netherlands
Phone:  +31 20 3206203 Mobile: +31 620 609 817
fax:    +31 20 8848747
E-mail: mark@fredhopper.com, m.a.kettner@chello.nl