RE: Tr : Refresh Message Resources

2012-09-04 Thread Martin Gainty
Buenos I am glad to hear you have a solution! Saludos Cordiales (desde EEUU) Martín __ Porfavor..no altere o interrumptir esta communicacion...Gracias To: user@struts.apache.org Subject: Tr : Refresh Message Resources From: pedrofelipe.co

Tr : Refresh Message Resources

2012-09-04 Thread pedrofelipe . costa
method , so i just had to override that version either. With the best regards. Pedro Costa - Forwarded by Pedro Felipe COSTA/BPSS/FR/EUROPE/GROUP on 04-09-2012 14:37 - Refresh Message Resources Pedro Felipe COSTA Contractor To: user 04-09-2012 10:26 From: Pedro Felipe COSTA

Refresh Message Resources

2012-09-04 Thread pedrofelipe . costa
Good Morning in my timezone. I changed the struts framework(1.2.9) to load the message resources from the database instead from property files. I extended one class from the org.apache.struts.util.MessageResources class and another one from the org.apache.struts.util.MessageResourcesFactory

Re: Cannot find message resources under key org.apache.struts.action.MESSAGE

2012-04-01 Thread Dave Newton
May need more to go on. Dave (pardon brevity and typos, on cell) On Apr 1, 2012 2:11 PM, "Gopinath.M" wrote: > Please check struts-config.xml file. > >

Re: Multiple Message Resources Files

2011-12-29 Thread Maithily
Here's a simpler explanation of the scenario - I have the following properties files in classes folder : - file_a.properties - file_b.properties - file_c.properties - file_d.properties and the following struts config files along with the message-resources tags pointing to prope

Re: Multiple Message Resources Files

2011-12-28 Thread Maithily
org/2.x/docs/localization.html > > jb > > On Wed, Dec 28, 2011 at 12:49 AM, Maithily >wrote: > > > Hi All, > > > > I am facing the following problem with the struts message resources > files - > > > > - Our application has many functional modules and each module a

Re: Multiple Message Resources Files

2011-12-28 Thread Jeffrey Black
Forgive me for not fully understanding your question. Perhaps this link will help: http://struts.apache.org/2.x/docs/localization.html jb On Wed, Dec 28, 2011 at 12:49 AM, Maithily wrote: > Hi All, > > I am facing the following problem with the struts message resources files -

Multiple Message Resources Files

2011-12-27 Thread Maithily
Hi All, I am facing the following problem with the struts message resources files - - Our application has many functional modules and each module a struts config file and message resources file. - Common message resources are bundled in a single file - say "Commonresources.prope

Message resources -- 2 suggestions and 1 question

2010-09-17 Thread java . rgm
On this page: http://struts.apache.org/2.2.1/docs/message-resource-files.html Suggestion -- discuss (or at least link to) PropertyResourceBundle MessageFormat patterns This page should include an example to the effect of: numUsers = {0,choice,0#No Users|1#1 User|1<{0} Users} Suggestion -- Expand

RE: Loading different Message Resources for user and Admin in Struts

2010-04-23 Thread Kawczynski, David
Zaheer Mohammad [mailto:zaheer.cse4...@gmail.com] > Sent: Friday, April 23, 2010 8:54 AM > To: user@struts.apache.org > Subject: Loading different Message Resources for user and > Admin in Struts > > Hi Friends, > My Requirement is to Load Different Message resource

Loading different Message Resources for user and Admin in Struts

2010-04-23 Thread Zaheer Mohammad
Hi Friends, My Requirement is to Load Different Message resource bundles of same name and same tags with different messages in them differently for Administrator and userin Struts Application By checking Login User.can any One help me. Thanks In Advance. Zaheer Mohammad

RE: [S1] message-resources

2009-01-13 Thread Evert Lammerts
ilto:lukasz.len...@googlemail.com] Sent: dinsdag 13 januari 2009 14:59 To: Struts Users Mailing List Subject: Re: [S1] message-resources 2009/1/13 Evert Lammerts : > In the WEB-INF/src/content folder I have two files - a Messages.properties > and Messages_en.properties, both containing a line looki

Re: [S1] message-resources

2009-01-13 Thread Lukasz Lenart
2009/1/13 Evert Lammerts : > In the WEB-INF/src/content folder I have two files - a Messages.properties > and Messages_en.properties, both containing a line looking like this: Put it to WEB-INF/classes/content Regards -- Lukasz http://www.lenart.org.pl/ ---

[S1] message-resources

2009-01-13 Thread Evert Lammerts
Hi all, Sorry for the repetition, but I can't seem to figure this out in spite of all those resources you can find online. Using struts 1.3.8 (in Liferay 5.1.2 portal on Tomcat 6.0, through the apache bridge) I'm having trouble accessing message resources. In a portlet I've

Re: Unable to get messages from Message resources file for keys

2008-10-23 Thread Rajiv Singla
actions. >> For BOs and DAOs , no scope is defined. We are using applicationContext >> xml >> files to define beans. >> >> Labels and buttons names are picked up from MessageResources.properties >> file. >> But on some pages these values are not picked up and

Re: Unable to get messages from Message resources file for keys

2008-10-23 Thread Mead Lai
alues are not picked up and labels go missing. > > I am new to both Spring and Struts 2 and I am unable to figure that why > this > is happening. > Message resources are loaded in context and it should be available to all. > > Please help me resolve this issue. > > Thanks

Unable to get messages from Message resources file for keys

2008-10-23 Thread Rajiv Singla
labels go missing. I am new to both Spring and Struts 2 and I am unable to figure that why this is happening. Message resources are loaded in context and it should be available to all. Please help me resolve this issue. Thanks in advance, Rajiv -- View this message in context: http://www.

Re: Loading message resources properties from a database

2008-09-04 Thread Laurie Harper
laredotornado wrote: Hi, I'm using Struts 1. We want to load our message resources properties, currently defined in our struts-config.xml file: from a database. Now of course, they are in a file called "MessageResources.properties". What is the proper way to do this? Yo

Loading message resources properties from a database

2008-09-03 Thread laredotornado
Hi, I'm using Struts 1. We want to load our message resources properties, currently defined in our struts-config.xml file: from a database. Now of course, they are in a file called "MessageResources.properties". What is the proper way to do this? Thanks, - Dave -- View

Re: message resources ???key??? displaying

2008-07-14 Thread danipruebas
Hi, That was the correct path, I didn´t know about it. Thank you for your answers, guys. ;-) - Original Message - From: "Lukasz Lenart" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, July 14, 2008 8:22 PM Subject: Re: message resources ?

Re: message resources ???key??? displaying

2008-07-14 Thread Lukasz Lenart
> The ApplicationResources.properties file is under: > proyect_name/Webroot/WEB-INF/lib/ApplicationResources.properties Move to the /WEB-INF/classes Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL

Re: message resources ???key??? displaying

2008-07-14 Thread Dante A. Castiglione Maldonado
nal Message - From: "Lukasz Lenart" > <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Monday, July 14, 2008 6:32 PM > Subject: Re: message resources ???key??? displaying > > >> Hi, >> >> How did you co

Re: message resources ???key??? displaying

2008-07-14 Thread danipruebas
?? Regards, - Original Message - From: "Lukasz Lenart" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, July 14, 2008 6:32 PM Subject: Re: message resources ???key??? displaying Hi, How did you configure the messages in struts-config? It sho

Re: message resources ???key??? displaying

2008-07-14 Thread Lukasz Lenart
Hi, How did you configure the messages in struts-config? It should be something like this: Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

message resources ???key??? displaying

2008-07-14 Thread danipruebas
Hi, I´m developing a project with Struts 1.2. When trying to display in a jsp page, the errors saved in SaveMessages are displayed, but not correctly, for example: in showerrors.jsp: ???es.error.wrong.password??? instead of: Your password is wrong. The ApplicationResources.properties file i

Message resources - Application Resource - Polish

2008-01-10 Thread Raghuveer
Hello, Since I have only to languages ,I have provided a button in screen and passing url parameter "english" and "polish". In Action file taking this language and forming locale object and setting to ACTION method "setLocale" Wprowadź - Enter Above polish word is not coming exactly

AW: Re: Re: Re: Message resources configuration

2008-01-02 Thread Sebastian Göttschkes
Hi again, I wrote: >> Hi, >> >> Laurie Harper wrote: >> >> Sebastian Göttschkes wrote: >> >> >> Laurie Harper wrote: >> >> >> Sebastian Göttschkes wrote: >> >> >>> [...] >> >> >>>

Re: Re: Re: Re: Message resources configuration

2008-01-02 Thread Sebastian Göttschkes
Hi, Laurie Harper wrote: >> Sebastian Göttschkes wrote: >> >> Laurie Harper wrote: >> >> Sebastian Göttschkes wrote: >> >>> [...] >> >>> >> >>> I defined the message resources in the struts-config.xml: >>

Re: AW: Re: Message resources configuration

2007-12-28 Thread Laurie Harper
Sebastian Göttschkes wrote: Laurie Harper wrote: Sebastian Göttschkes wrote: [...] I defined the message resources in the struts-config.xml: [...] The strange thing is I didn't change anything except for the two empty files I created. So I can say that the problem isn't hard-

AW: Re: Message resources configuration

2007-12-28 Thread Sebastian Göttschkes
Hi, >Laurie Harper wrote: > >Sebastian Göttschkes wrote: >> Hi, >> >> I'm experiencing strange behaviours with the message resources and I'm not >> sure about where to find the problem. >> >> I defined the message

Re: Message resources configuration

2007-12-27 Thread Laurie Harper
Sebastian Göttschkes wrote: Hi, I'm experiencing strange behaviours with the message resources and I'm not sure about where to find the problem. I defined the message resources in the struts-config.xml: In the folder named in the xml (Resources/src/com/equitystory/pms/resou

Message resources configuration

2007-12-27 Thread Sebastian Göttschkes
Hi, I'm experiencing strange behaviours with the message resources and I'm not sure about where to find the problem. I defined the message resources in the struts-config.xml: In the folder named in the xml (Resources/src/com/equitystory/pms/resources/), I created the follo

Cannot find message resources under key org.apache.struts.action.MESSAGE

2007-11-26 Thread forumuser
I tried to deploy struts application on RAD Websphere App Server 6. it is throwing following exception javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE and on the browser it says internal server error 500 please help as what to do to

Re: message resources in struts.xml

2007-08-23 Thread Pavel Sapozhnikov
roperties. You can also put it in struts.xml as > > > /> > > > > -Original Message- > > From: Pavel Sapozhnikov [mailto: [EMAIL PROTECTED] > > Sent: Thursday, August 23, 2007 2:14 PM > > To: Struts Users Mailing List > > Subject: message resources in struts.xml > &

Re: message resources in struts.xml

2007-08-23 Thread Pavel Sapozhnikov
> -Original Message- > From: Pavel Sapozhnikov [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 23, 2007 2:14 PM > To: Struts Users Mailing List > Subject: message resources in struts.xml > > Hi I have a question in Struts 1 in struts-config.xml I have: > > > &

RE: message resources in struts.xml

2007-08-23 Thread Jiang, Jane (NIH/NCI) [C]
I think it is the value of struts.custom.i18n.resources in struts.properties. You can also put it in struts.xml as -Original Message- From: Pavel Sapozhnikov [mailto:[EMAIL PROTECTED] Sent: Thursday, August 23, 2007 2:14 PM To: Struts Users Mailing List Subject: message resources in

message resources in struts.xml

2007-08-23 Thread Pavel Sapozhnikov
Hi I have a question in Struts 1 in struts-config.xml I have: What would the equivalent be in Struts2 Thank you -- Pavel Sapozhnikov xFact, Inc [EMAIL PROTECTED]

Message resources

2007-08-13 Thread stanlick
Where are the "stock" validation messages located? Are we still required to be copy them into our application message file? -- Scott [EMAIL PROTECTED]

RE: Accessing message resources

2007-04-05 Thread Dave Newton
--- David Harland <[EMAIL PROTECTED]> wrote: > In struts 1 you could access the resource bundles > using Resources.getMessage from any class. How do you > do the same in struts 2 using getText. http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ActionSupport.html#getTexts(ja

RE: Accessing message resources

2007-04-05 Thread David Harland
message resources --- David Harland <[EMAIL PROTECTED]> wrote: > How do you use ognl to access resources outside of a class that > extends ActionSupport. eg the struts 2 equivalent to > Resources.getMessage but > getText() instead I'm not aware that you'd normally

Accessing message resources

2007-04-05 Thread David Harland
Hi, How do you use ognl to access resources outside of a class that extends ActionSupport. eg the struts 2 equivalent to Resources.getMessage but getText() instead Thanks Dave. Need Mail bonding? Go to

Re: Accessing message resources

2007-04-05 Thread Dave Newton
--- David Harland <[EMAIL PROTECTED]> wrote: > How do you use ognl to access resources outside of a > class that extends ActionSupport. eg the struts 2 > equivalent to Resources.getMessage but > getText() instead I'm not aware that you'd normally use OGNL for that; the and tags are what (I thin

Re: message resources

2006-12-29 Thread Laurie Harper
Kranti wrote: hi, i have a problem related to message resources during the login time i am doing this session.setAttribute(Globals.LOCALE_KEY, locale); where locale is created by the user specific language settings there in DB. in jsp: using this and in struts config file and inthe same

message resources

2006-12-20 Thread Kranti
hi, i have a problem related to message resources during the login time i am doing this session.setAttribute(Globals.LOCALE_KEY, locale); where locale is created by the user specific language settings there in DB. in jsp: using this and in struts config file and inthe same directory i have

Re: [s2] Message resources from database

2006-11-25 Thread Ted Husted
On 11/25/06, Ted Husted <[EMAIL PROTECTED]> wrote: Essentially, you can implement the Java ResourceBundle interface /s/implement the Java ResourceBundle interface/extend the Java ResourceBundle class - To unsubscribe, e-mail:

Re: [s2] Message resources from database

2006-11-25 Thread Ted Husted
It's actually fairly simple to do. There's a detailed example in the WebWork in Action book (see page 375). Struts 2 (and WW2) search the class heirarchy for message resources, looking first for classes that Essentially, you can implement the Java ResourceBundle interface and have it

[s2] Message resources from database

2006-11-17 Thread Nate Drake
Hi, We're in the process of migrating a Struts1 app to Struts2. In Struts1 we created a subclass of PropertyMessageResources to get our messages from the database instead of properties files. I can't seem to find how we'd go about doing this in Struts2. Do I just subclass com.opensymphony.xwork

Re: Reload Message resources i.e Resource Bundle

2006-08-18 Thread Yahzz Yan
gt; How to Reload Message resources i.e Resource Bundles in struts 1.1??? > > > > ___ > Harsh Gupta > Software Engineer > MPS Technologies (A Macmillan company) > > Email: h [EMAIL PROTECTED] > Web: www.mpstechnologies.com > > T

message-resources with keys don't work

2006-08-18 Thread Matthew T Wall
that using a message-resources defined with a key does not work. I have performed many experiments to try and track the problem down. Here's what I've discovered: <> Using a message-resource DOES work if a key is not defined. <> When a key is defined, having something

Re: Reload Message resources i.e Resource Bundle

2006-08-17 Thread Rahul Akolkar
On 8/17/06, Harsh Gupta <[EMAIL PROTECTED]> wrote: How to Reload Message resources i.e Resource Bundles in struts 1.1??? Create a "reloadable" message resources factory, see factory attribute [1] of -Rahul [1] http://struts.apache.org/1.x/userGuide/configuration.html#

Re: Reload Message resources i.e Resource Bundle

2006-08-17 Thread Monkeyden
I usually just touch the web.xml, to redeploy the app, but this isn't always feasible in production. On 8/17/06, Harsh Gupta <[EMAIL PROTECTED]> wrote: How to Reload Message resources i.e Resource Bundles in struts 1.1??? ___ Harsh Gup

Reload Message resources i.e Resource Bundle

2006-08-16 Thread Harsh Gupta
How to Reload Message resources i.e Resource Bundles in struts 1.1??? ___ Harsh Gupta Software Engineer MPS Technologies (A Macmillan company) Email: h <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] Web: <http://www.mpstechnol

[solved] message resources

2006-06-08 Thread Marcus
Samere, Adam J schrieb: Internally the DynaForm (i.e. DynaBean) uses a Map to store the properties. This is what allows it to provide dynamic properties and save you from writing ActionForm subclasses. When you reference myDynaForm with a JSP Expression Language (EL) expression like ${myDynaForm

RE: message resources

2006-06-08 Thread Samere, Adam J
underlying Map, then call get(String) using the supplied property. Make sense? -Adam -Original Message- From: Marcus [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 9:47 AM To: Struts Users Mailing List Subject: Re: message resources > > When using EL with dyna beans you n

Re: message resources

2006-06-08 Thread Dave Newton
Marcus wrote: >> When using EL with dyna beans you need to reference the map property >> then your property. The struts tags (i.e. bean:write) handle this for >> you. >> >> > Or do you really mean a map? I am not using one.. ...but you're using a DynaForm, so you are, so just do what he said ;)

Re: message resources

2006-06-08 Thread Marcus
When using EL with dyna beans you need to reference the map property then your property. The struts tags (i.e. bean:write) handle this for you. Sorry, call me dumb, but I didn't really get what you tried to explain. EL ? - map property - you mean my dynaForm? Or do you really mean a map? I

RE: message resources

2006-06-08 Thread Samere, Adam J
: message resources > Nope... That means Servlet spec 2.2, which is less than you need ;) > > Pre-advice caveat: I've never figured out XML, DOCTYPEs, and people > make fun of me for it. > > http://java.sun.com/xml/ns/j2ee"; > xmlns:xsi="http:

Re: message resources

2006-06-08 Thread Marcus
Nope... That means Servlet spec 2.2, which is less than you need ;) Pre-advice caveat: I've never figured out XML, DOCTYPEs, and people make fun of me for it. http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xm

Re: message resources

2006-06-08 Thread Dave Newton
Marcus wrote: > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> > > > 2.2 means 2.0-ish, I assume? Nope... That means Servlet spec 2.2, which is less than you need ;) Pre-advice caveat: I've never figured out XML, DOCTYPEs, an

Re: message resources

2006-06-08 Thread Marcus
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> 2.2 means 2.0-ish, I assume? Marcus Dave Newton schrieb: Marcus wrote: Any ideas? What does your web.xml DOCTYPE look like? Irritatingly enough, you have to tell Tomcat to go ahead and be 2.0-ish. Dave ---

Re: message resources

2006-06-08 Thread Dave Newton
Marcus wrote: > Any ideas? What does your web.xml DOCTYPE look like? Irritatingly enough, you have to tell Tomcat to go ahead and be 2.0-ish. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: message resources

2006-06-08 Thread Marcus
Mine is to either use a JSP 2.0 container so the original EL suggestion ${myBean.value} EL will work, or use the struts-el tags if you're using a < JSP 2.0 container, which will do the same thing in a different way. I am using Apache Tomcat 5.5, and AFAIK, it does support JSP 2.0. For "myBean"

Re: message resources

2006-06-08 Thread Dave Newton
> From: Marcus [mailto:[EMAIL PROTECTED] > > Value "myValue" has been added. > (With the value of "myValue" printed!) > Anyway, you've gotten a lot of... advice. Mine is to either use a JSP 2.0 container so the original EL suggestion ${myBean.value} EL will work, or use the struts-el tags

Re: message resources

2006-06-08 Thread Marcus
>It's awfull, but assuming you have myDynaForm in some scope should work Yes, indeed! ;-) Isn't there something more struts like (using tags..) Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: message resources

2006-06-08 Thread David Delbecq
Marcus wrote: > I wrote: And it returns literally: ${myDynaForm.value} Sorry, thought bean:message was supporting el notation :) try this It's awfull, but assuming you have myDynaForm in some scope should work - To uns

RE: message resources

2006-06-08 Thread Mukta
implementation for error messages in my project. So, I just sent that code to you :) -Original Message- From: Marcus [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 3:01 PM To: Struts Users Mailing List Subject: Re: message resources >In your Action class, add following stateme

Re: message resources

2006-06-08 Thread Marcus
In your Action class, add following statements before return statement: ActionMessages oMsgs = new ActionErrors(); oMsgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("myValueAdded", "")); saveErrors(oRequest.getSession(), oMsgs); In your jsp, you must be having It will work. It's no

RE: message resources

2006-06-08 Thread Mukta
t be having It will work. -Original Message- From: Marcus [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 2:44 PM To: Struts Users Mailing List Subject: Re: message resources > I wrote: And it returns literally: ${myDynaForm.value} >What do you have in the java class

Re: message resources

2006-06-08 Thread Marcus
> I wrote: And it returns literally: ${myDynaForm.value} What do you have in the java class for the value you want to put in your message, is it a has table or something else ? It's all just plain simple. I store my value in a dynaForm, forward to an action, compute stuff, forward to to a

RE: message resources

2006-06-08 Thread Olivier Bex
Hi, What do you have in the java class for the value you want to put in your message, is it a has table or something else ? Olivier. -Message d'origine- De : Marcus [mailto:[EMAIL PROTECTED] Envoyé : jeudi 8 juin 2006 10:58 À : Struts Users Mailing List Objet : Re: message reso

RE: message resources

2006-06-08 Thread Mukta
What do you mean by " Action adds value"?? Where does Action add this value? -Original Message- From: Marcus [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 2:30 PM To: Struts Users Mailing List Subject: Re: message resources >Where do you want to print this messag

RE: message resources

2006-06-08 Thread Mukta
Try using -Original Message- From: Marcus [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 2:28 PM To: Struts Users Mailing List Subject: Re: message resources >Pass the argument {0} as follows: > I tried that, but then it writes literally: Value value has been

Re: message resources

2006-06-08 Thread David Delbecq
Marcus wrote: Pass the argument {0} as follows: I tried that, but then it writes literally: Value value has been added. But what need the VALUE of hte variable "myValue" to be printed. :-( Marcus - To unsubscribe, e-m

RE: message resources

2006-06-08 Thread Mukta
I'm assuming that there is a key-value pair defined in your message-resources (.properties) file as follows: myValueAdded=my value {0} has been added. And that you want to print a value at location {0} to be passed from some jsp or some other file. Moreover, you can pass upto 5 argu

Re: message resources

2006-06-08 Thread Marcus
Where do you want to print this message ? I type in my value into a textbox. Forward to action. Action adds value, forwards to jsp. Now jsp should say: Value "myValue" has been added. (With the value of "myValue" printed!) What type of data do you use ? Strings Marcus -

Re: message resources

2006-06-08 Thread Marcus
Pass the argument {0} as follows: I tried that, but then it writes literally: Value value has been added. But what need the VALUE of hte variable "myValue" to be printed. :-( Marcus - To unsubscribe, e-mail: [EMAIL PROT

RE: message resources

2006-06-08 Thread Olivier Bex
Hi Marcus, Where do you want to print this message ? What type of data do you use ? Regards, Olivier -Message d'origine- De : Marcus [mailto:[EMAIL PROTECTED] Envoyé : jeudi 8 juin 2006 10:02 À : Struts Users Mailing List Objet : message resources Hi, I want to print a message

RE: message resources

2006-06-08 Thread Mukta
Pass the argument {0} as follows: -Original Message- From: Marcus [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 1:32 PM To: Struts Users Mailing List Subject: message resources Hi, I want to print a message like this: myValueAdded=my value{0} has been added. How can I

message resources

2006-06-08 Thread Marcus
Hi, I want to print a message like this: myValueAdded=my value{0} has been added. How can I fill in the corresponding value? Thx, Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

loading message resources from a webapp location

2006-05-16 Thread tim.fulcher
Hi We wish to load message resources from a local url within our webapp. I can't see an easy way to obtain servlet context within my MessageResourcesFactory / MessageResources implementations. Am I missing something here? Also ( yeah I know this is often raised), if I were to wipe the se

Re: message-resources key/parameter

2006-05-10 Thread josh t
is the same as "key" in struts-config.xml) for a while, it was only actually supported since Struts 1.2.7 and Validator 1.1.4: http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html#section7_2 Niall On 5/10/06, josh t wrote: > > > > Can someone please expl

Re: message-resources key/parameter

2006-05-10 Thread Niall Pemberton
pported since Struts 1.2.7 and Validator 1.1.4: http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html#section7_2 Niall On 5/10/06, josh t <[EMAIL PROTECTED]> wrote: Can someone please explain to me how and where in my code I need to refer to message-resources key?

message-resources key/parameter

2006-05-10 Thread josh t
Can someone please explain to me how and where in my code I need to refer to message-resources key? When doing validation, how does the validator know where to loopup the ApplicationResources? Do I need to include the key somwhere in my validator.xml? Thanks

Re:Cannot find message resources under key org.apache.struts.action.MESSAGE , what could cause this ?

2006-03-14 Thread starki78
PROTECTED] To : "Struts Users Mailing List" user@struts.apache.org Cc : Date : Wed, 15 Mar 2006 01:39:54 +0430 Subject : Cannot find message resources under key org.apache.struts.action.MESSAGE , what could cause this ? > Hi > Thank you for reading my post. > I

Cannot find message resources under key org.apache.struts.action.MESSAGE , what could cause this ?

2006-03-14 Thread Legolas Woodland
Hi Thank you for reading my post. I upload a web application to its host , it works OK until a few hours ago , and now it shows the following exception is there any comment about this ? javax.servlet.jsp.JspException: Cannot find message resources under key

RE: Using message resources in non-action class

2006-03-14 Thread starki78
Thanks a lot it works!!! -- Initial Header --- >From : "Anuradha S.Athreya" [EMAIL PROTECTED] To : "Struts Users Mailing List" user@struts.apache.org Cc : Date : Tue, 14 Mar 2006 14:23:43 +0530 Subject : RE: Using message resour

RE: Using message resources in non-action class

2006-03-14 Thread Anuradha S.Athreya
1 PM To: user Subject: RE: Using message resources in non-action class Yes this is a good solution! Do you also have a solution to access these message resources from a plain java-class there you don't have the servlet context? Nice greetings -- Initial Header --- >

Recall: Using message resources in non-action class

2006-03-13 Thread Anuradha S.Athreya
Anuradha S.Athreya would like to recall the message, "Using message resources in non-action class". - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Using message resources in non-action class

2006-03-13 Thread Chandra.Ravinithala
PROTECTED] Sent: Monday, March 13, 2006 2:32 PM To: user Subject: RE: Using message resources in non-action class Hi This would be a very good solution but when I test it this way: public static void main(String args[]) { ResourceBundle messageresources = ResourceBundle.getBundle

RE: Using message resources in non-action class

2006-03-13 Thread starki78
+0530 Subject : RE: Using message resources in non-action class > Use resource bundle: > > ResourceBundle messageresources = > ResourceBundle.getBundle("ApplicationResources"); > > Or > > Properties messageresources = new Properties(); > Buffe

RE: Using message resources in non-action class

2006-03-13 Thread Chandra.Ravinithala
s.load(is); Chandra -Original Message- From: starki78 [mailto:[EMAIL PROTECTED] Sent: Monday, March 13, 2006 1:21 PM To: user Subject: RE: Using message resources in non-action class Yes this is a good solution! Do you also have a solution to access these message resources from a plain

RE: Using message resources in non-action class

2006-03-12 Thread starki78
Yes this is a good solution! Do you also have a solution to access these message resources from a plain java-class there you don't have the servlet context? Nice greetings -- Initial Header --- >From : [EMAIL PROTECTED] To : user@struts.apache.org

RE: Using message resources in non-action class

2006-03-12 Thread Chandra.Ravinithala
s Users Mailing List' Subject: Using message resources in non-action class In my struts application, I have resources file application.properties. This has been configured in the struts-config.xml file Now, I would like to use this in my source code , in a non-action class. I

Using message resources in non-action class

2006-03-12 Thread Anuradha S.Athreya
In my struts application, I have resources file application.properties. This has been configured in the struts-config.xml file Now, I would like to use this in my source code , in a non-action class. I tried the following MessageResources messageresources = MessageResources.getMessag

Re: Cannot find message resources under key org.apache.struts.action.MESSAGE

2006-02-27 Thread Laurie Harper
Did you define the message resources in struts-config.xml? The init param in web.xml isn't used in current versions of Struts. Make sure you have this in your struts-config: L. red phoenix wrote: I have configure my properties file,but when run,it raise error and say can't fi

Re: Cannot find message resources under key org.apache.struts.action.MESSAGE

2006-02-27 Thread Dharmendra Singh
ype="com.LogmanageAction" > name="logmanageForm" > validate="true" > input="/index.jsp"> > > > > > > application.properties is locate follow directory: >

Cannot find message resources under key org.apache.struts.action.MESSAGE

2006-02-27 Thread red phoenix
> application.properties is locate follow directory: C:\tomcat5\webapps\Log\WEB-INF\classes\resources\application.properties When the JSP execute ,it raise following error: javax.servlet.ServletException: Canno

Re: Struts Message Resources

2006-02-21 Thread Dave Newton
Jim Reynolds wrote: > All is good. But I have created some tag libraries, in which run in > the same struts app, and I need to get to them. I know you can get the > properties from an action class through the struts api ... but is > there anyway to get them from the application context, when you ar

Struts Message Resources

2006-02-21 Thread Jim Reynolds
I have a struts application in which I use the message resources for most of my view pages. Using bean:message, etc. All is good. But I have created some tag libraries, in which run in the same struts app, and I need to get to them. I know you can get the properties from an action class through

Re: formatting messages in different colours from Message Resources

2006-01-11 Thread Laurie Harper
lay messages in JSP Page as follows 1) Successful database operations in RED color 2) Failure database operations in BLUE color -- -- ------ Message Resources messages.header=

  1   2   3   >