You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by struts user <st...@yahoo.com> on 2003/04/18 03:06:07 UTC
ApplicationResources.properties and value passing
Hello,
Can someone please give me an example how to pass a
value in action servlet as a parameter to
ApplicationResources.properties so that the value can
be displayed dynamically?
Thanks!
Lee
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: ApplicationResources.properties and value passing
Posted by James Mitchell <jm...@apache.org>.
This is one of those cases where I have to read your question about 10 times
to really figure out what it is you need.
> Can someone please give me an example how to pass
> a value in action servlet as a parameter to
> ApplicationResources.properties so that the value can
> be displayed dynamically?
What do you mean by "pass a value in action servlet"?
How is it possible to pass a parameter to a file? What does that mean
anyway?
I'm guessing from your code snippet that you might be forgetting to:
saveErrors(request, errors);
--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org
----- Original Message -----
From: "struts user" <st...@yahoo.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, April 18, 2003 8:59 AM
Subject: Re: ApplicationResources.properties and value passing
>
> If I found it in struts-example, I would not have
> asked it here. The example that I am looking for is as
> following:
>
> if (userId == null || userId.length() == 0)
> errors.add("userId", new
> ActionError("errors.required", "User Id"));
>
> Assumming that you have errors.required defined in
> ApplicationResources.properties file.
>
> --- James Mitchell <jm...@apache.org> wrote:
> > Are you saying that the struts-example doesn't help?
> >
> >
> > James Mitchell
> > Software Developer/Struts Evangelist
> > http://www.open-tools.org
> >
> >
> >
> > ----- Original Message -----
> > From: "struts user" <st...@yahoo.com>
> > To: "Struts Users Mailing List"
> > <st...@jakarta.apache.org>
> > Sent: Thursday, April 17, 2003 6:06 PM
> > Subject: ApplicationResources.properties and value
> > passing
> >
> >
> > > Hello,
> > >
> > > Can someone please give me an example how to pass
> > a
> > > value in action servlet as a parameter to
> > > ApplicationResources.properties so that the value
> > can
> > > be displayed dynamically?
> > >
> > > Thanks!
> > > Lee
> > >
> > >
> > > __________________________________________________
> > > Do you Yahoo!?
> > > The New Yahoo! Search - Faster. Easier. Bingo
> > > http://search.yahoo.com
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > struts-user-help@jakarta.apache.org
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > struts-user-help@jakarta.apache.org
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: ApplicationResources.properties and value passing
Posted by struts user <st...@yahoo.com>.
If I found it in struts-example, I would not have
asked it here. The example that I am looking for is as
following:
if (userId == null || userId.length() == 0)
errors.add("userId", new
ActionError("errors.required", "User Id"));
Assumming that you have errors.required defined in
ApplicationResources.properties file.
--- James Mitchell <jm...@apache.org> wrote:
> Are you saying that the struts-example doesn't help?
>
>
> James Mitchell
> Software Developer/Struts Evangelist
> http://www.open-tools.org
>
>
>
> ----- Original Message -----
> From: "struts user" <st...@yahoo.com>
> To: "Struts Users Mailing List"
> <st...@jakarta.apache.org>
> Sent: Thursday, April 17, 2003 6:06 PM
> Subject: ApplicationResources.properties and value
> passing
>
>
> > Hello,
> >
> > Can someone please give me an example how to pass
> a
> > value in action servlet as a parameter to
> > ApplicationResources.properties so that the value
> can
> > be displayed dynamically?
> >
> > Thanks!
> > Lee
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo
> > http://search.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
>
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: ApplicationResources.properties and value passing
Posted by James Mitchell <jm...@apache.org>.
Are you saying that the struts-example doesn't help?
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org
----- Original Message -----
From: "struts user" <st...@yahoo.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Thursday, April 17, 2003 6:06 PM
Subject: ApplicationResources.properties and value passing
> Hello,
>
> Can someone please give me an example how to pass a
> value in action servlet as a parameter to
> ApplicationResources.properties so that the value can
> be displayed dynamically?
>
> Thanks!
> Lee
>
>
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org