struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Birch <alex_d_bi...@yahoo.co.uk>
Subject Action.getResources(request) not working
Date Fri, 04 Oct 2002 04:33:31 GMT
Hi,

I already asked this question earlier but I didn't get a correct answer...

I have 1 ApplicationResources.properties file which I can happily access in my jsp page using
the
<bean:message key="somekey"/>

but in any of my Actions when I try to go:

  MessageResources messages = getResources(request);
or,
  MessageResources messages = getResources(request, "ApplicationResources");
or,
  MessageResources messages = getResources(request, "ApplicationResources");


then getResources(...) returns null...

I can use getResources() - the deprecated method but I don't like using a deprecated method
when
there's no reason why the other methods shouldn't work

am I doing something stupid and totally wrong? I don't see why getResources(request) doesn't
work

in my web.xml I have the usual:

 <init-param>
      <param-name>application</param-name>
      <param-value>ApplicationResources</param-value>
 </init-param>

There's nothing in my struts-config.xml file relating to the resources


thanks again in advance,

Alex

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message