David
From: "Raible, Matt" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: can't get messages from my action
Date: Mon, 20 Jan 2003 15:14:17 -0700
You could load it as a ResourceBundle - since it's in your classpath, you
should be able to get it easily.
> -----Original Message-----
> From: Garth Ramakant Patil [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 3:03 PM
> To: Struts Users Mailing List
> Subject: RE: can't get messages from my action
>
>
> Thanks.
> One further question: If I'm trying to do the same thing from another
> method in the business logic layer where I haven't passed in
> the request,
> is it possible to get it some other way?
>
>
> On Mon, 20 Jan 2003, Raible, Matt wrote:
>
> > MessageResources resources = getResources(request);
> >
> > > -----Original Message-----
> > > From: Garth Ramakant Patil [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, January 20, 2003 2:56 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: can't get messages from my action
> > >
> > >
> > > I'm trying to get a message from
> > > ApplicationResources.properties inside
> > > one of my action perform methods. Here's what I try to do:
> > >
> > > MessageResources messages =
> > > MessageResources.getMessageResources(Action.MESSAGES_KEY);
> > > String modules = messages.getMessage("client.newuser");
> > >
> > > When I run it, modules comes up null. What am I doing wrong?
> > > Thanks.
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
_________________________________________________________________
MSN 8: advanced junk mail protection and 2 months FREE*. http://join.msn.com/?page=features/junkmail
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

