Re: Unable to find keys located in .properties file

2015-03-20 Thread Jeanderson
" because > > I got an exception when accessing "localhost:8080/message_resource". > > > > I just added an index action pointing to "/index.jsp" so you can see the > > dummy form. > > The register action just points to "thankyou.jsp" in case of a s

Re: Unable to find keys located in .properties file

2015-03-18 Thread Lukasz Lenart
y from "web.xml" because > I got an exception when accessing "localhost:8080/message_resource". > > I just added an index action pointing to "/index.jsp" so you can see the > dummy form. > The register action just points to "thankyou.jsp" in case of a s

Re: Unable to find keys located in .properties file

2015-03-12 Thread Jeanderson
uot;localhost:8080/message_resource". I just added an index action pointing to "/index.jsp" so you can see the dummy form. The register action just points to "thankyou.jsp" in case of a successful result. The "thankyou.jsp" doesn't use the .properties file. I

Re: Unable to find keys located in .properties file

2015-03-12 Thread Lukasz Lenart
dido > http://jeandersonbc.github.io > > 2015-03-12 2:44 GMT-03:00 Lukasz Lenart : > >> Almost gut >> >> your action is in: >> src/main/java/lab_struts/tutorial/message_resource/action >> >> but the related properties file in: >> src/main/resources/lab_

Re: Unable to find keys located in .properties file

2015-03-12 Thread Jeanderson
> > your action is in: > src/main/java/lab_struts/tutorial/message_resource/action > > but the related properties file in: > src/main/resources/lab_struts/tutorial/message_resource/ > > so they differ on the last part - "action" and that's why message > cannot be found. Yo

Re: Unable to find keys located in .properties file

2015-03-11 Thread Lukasz Lenart
Almost gut your action is in: src/main/java/lab_struts/tutorial/message_resource/action but the related properties file in: src/main/resources/lab_struts/tutorial/message_resource/ so they differ on the last part - "action" and that's why message cannot be found. You have t

Re: Unable to find keys located in .properties file

2015-03-11 Thread Jeanderson
and so far, I've been working with the > official > > tutorials to get started with the framework. Also, I'm using Eclipse. > > > > In the "Message Resource Files" [1], the framework can't find the key > > located in the .properties file although

Re: Unable to find keys located in .properties file

2015-03-11 Thread Lukasz Lenart
rk can't find the key > located in the .properties file although it is placed in the same package > of its related action class. > > Since I'm using Eclipse to create every Struts 2 project and knowing that > Struts 2 is a "convention over configuration" framewo

Unable to find keys located in .properties file

2015-03-11 Thread Jeanderson
Hi everyone, I am a beginner in Struts 2 and so far, I've been working with the official tutorials to get started with the framework. Also, I'm using Eclipse. In the "Message Resource Files" [1], the framework can't find the key located in the .properties file although

回复: 回复: 回复: Question of properties file

2014-07-18 Thread 木叶清风-谢
/Basic_Struts2_Mvn/src/main/resources originally.So it don't work.‍ -- 原始邮件 -- 发件人: "Lukasz Lenart";; 发送时间: 2014年7月18日(星期五) 中午1:06 收件人: "Struts Users Mailing List"; 主题: Re: 回复: 回复: Question of properties file 2014-07-18 5:31 GMT+02:00 木叶

Re: 回复: 回复: Question of properties file

2014-07-17 Thread Lukasz Lenart
2014-07-18 5:31 GMT+02:00 木叶清风-谢 : > I have solved my problem!thank you very much. Can you share what it was? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apach

回复: 回复: Question of properties file

2014-07-17 Thread 木叶清风-谢
I have solved my problem!thank you very much. -- 原始邮件 -- 发件人: "Lukasz Lenart";; 发送时间: 2014年7月15日(星期二) 下午3:27 收件人: "Struts Users Mailing List"; 主题: Re: 回复: Question of properties file 2014-07-15 9:23 GMT+02:00 木叶清风-谢 : > I have tr

Re: 回复: Question of properties file

2014-07-15 Thread Lukasz Lenart
2014-07-15 9:23 GMT+02:00 木叶清风-谢 : > I have tried,but it doesn't work It must be something wrong with your setup, though. What do you use to build the project and prepare WAR file? https://github.com/apache/struts/tree/develop/apps/blank/src/main/resources/example Regards -- Łukasz + 48 606 323

回复: Question of properties file

2014-07-15 Thread 木叶清风-谢
I have tried,but it doesn't work -- 原始邮件 -- 发件人: "Lukasz Lenart";; 发送时间: 2014年7月15日(星期二) 中午12:54 收件人: "Struts Users Mailing List"; 主题: Re: Question of properties file 2014-07-15 3:57 GMT+02:00 木叶清风-谢 : > hi!I meet a problem abo

Re: Question of properties file

2014-07-14 Thread Lukasz Lenart
2014-07-15 3:57 GMT+02:00 木叶清风-谢 : > hi!I meet a problem about the properties files. > I discover that the properties won't be loaded automatically unless use > value="global,Register,Package"/> in struts.xml. > I want to know how to configure the struts2 to load Package.properties and > (activ

Question of properties file

2014-07-14 Thread 木叶清风-谢
hi!I meet a problem about the properties files. I discover that the properties won't be loaded automatically unless use in struts.xml. I want to know how to configure the struts2 to load Package.properties and (activity_name).properties automatically,notice the ,the value is true!!!‍

Re: struts 1.3.10 in WTP / Indigo Dynamic Web Project properties file load

2012-04-16 Thread Javier Moreno
ng directory structure: - */WEB-INF/struts-config.xml* - */WEB-INF/resources/ApplicationResources.properties * That's not correct. You have to place the file into your *src *directory, inside a package. For example if your source files application use the package "*en.erico.app*" a

struts 1.3.10 in WTP / Indigo Dynamic Web Project properties file load

2012-04-13 Thread Érico
Hello I have created a new dynamic web application from scratch struts version => 1.3.10 An I have created my struts-config.xml I am not able to set a "properties" file on it Where do I need to place my file ? As an example I have : WEB-INF --struts-config.xml

RE: jsp/properties file/validation interaction question

2012-03-06 Thread Puneet Babbar 2
.org/2.3.1/docs/localization.html Regards Puneet -Original Message- From: John W. Himpel [mailto:j...@jlhimpel.net] Sent: Wednesday, March 07, 2012 4:48 AM To: user@struts.apache.org Subject: jsp/properties file/validation interaction question Good evening, 1) ActionClass A gathers some lis

jsp/properties file/validation interaction question

2012-03-06 Thread John W. Himpel
Good evening, 1) ActionClass A gathers some lists used in drop-down boxes and check-boxes in A.jsp. ActionClass A forwards to A.jsp. 2) The user makes selections and inputs additional data into A.jsp. The form in A.jsp forwards to ActionClass B. A.jsp uses the property file A.properties to prov

Re: adding style for the message in properties file.

2011-10-21 Thread Jeff Black
bject: Re: adding style for the message in properties file. The actionmessage code written in a common jsp being used for other pages also.So I would prefer not to touch that. Is there any other alternative way for this. On Thu, Oct 20, 2011 at 7:42 PM, Carl Ballantyne wrote: > Sounds like you

Re: adding style for the message in properties file.

2011-10-20 Thread Jeff Black
properties file. Sorry, I'm not sure I understand you correctly: according with what explained here (http://struts.apache.org/2.x/docs/actionmessage.html) the only thing you have to do is: Twitter     :http://www.twitter.com/m_cucchiara G+          :https://plus.google.com/107903711540963855921 Lin

Re: adding style for the message in properties file.

2011-10-20 Thread Eric Lentz
> Is there any other alternative way for this Break the message up? If your message is "My device color is RED." then write something like this:   . where your properties file contains: device.preamble=My device color is device.red=RED

Re: adding style for the message in properties file.

2011-10-20 Thread Maurizio Cucchiara
> My device color is RED. >> > >> > It will display as it is. No style change. >> > >> > >> > On Thu, Oct 20, 2011 at 7:21 PM, Maurizio Cucchiara >> > wrote: >> > >> > > There are no many options,  What happen

Re: adding style for the message in properties file.

2011-10-20 Thread Carl Ballantyne
I actually meant before you need to put escape="false" but I am sure you understood that anyway. As far as I know there is no other way. Maybe you could escape other text in the properties file if you need to display them that way. And then enter the html markup as normal. And then put

Re: adding style for the message in properties file.

2011-10-20 Thread Arpan
t; > > > > There are no many options, What happen if you include your marker tag > > > inside your resource properties file? > > > > > > Twitter :http://www.twitter.com/m_cucchiara > > > G+ :https://plus.google.com/107903711540963855921 >

Re: adding style for the message in properties file.

2011-10-20 Thread Carl Ballantyne
no many options, What happen if you include your marker tag > > inside your resource properties file? > > > > Twitter :http://www.twitter.com/m_cucchiara > > G+ :https://plus.google.com/107903711540963855921 > > Linkedin:http://www.linkedin.com/in

Re: adding style for the message in properties file.

2011-10-20 Thread Arpan
: > There are no many options, What happen if you include your marker tag > inside your resource properties file? > > Twitter :http://www.twitter.com/m_cucchiara > G+ :https://plus.google.com/107903711540963855921 > Linkedin:http://www.linkedin.com/in/mauriziocucc

Re: adding style for the message in properties file.

2011-10-20 Thread Maurizio Cucchiara
There are no many options,  What happen if you include your marker tag inside your resource properties file? Twitter     :http://www.twitter.com/m_cucchiara G+          :https://plus.google.com/107903711540963855921 Linkedin    :http://www.linkedin.com/in/mauriziocucchiara Maurizio Cucchiara

adding style for the message in properties file.

2011-10-20 Thread Arpan
there anyway I can add styling in the properties file? Thanks

Re: struts2 properties file reload on modification

2011-09-18 Thread Debraj Mallick
Thanks Łukasz Lenart, it works. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: struts2 properties file reload on modification

2011-09-18 Thread Łukasz Lenart
2011/9/19 Debraj Mallick : > i am using struts 2.2.1.1 (it is maven project), i am using IDE Answer is here [1], so upgrade to the latest available version and you're done. [1] https://issues.apache.org/jira/browse/WW-3602 Kind regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warsz

Re: struts2 properties file reload on modification

2011-09-18 Thread Debraj Mallick
i am using struts 2.2.1.1 (it is maven project), i am using IDE (SpringSource Tool 2.7.1), i have modifed the the deployed properties also, but not getting any changes so i have to build the project and again deploy it. i am using Tomcat 6.0.26.

Re: struts2 properties file reload on modification

2011-09-18 Thread Łukasz Lenart
2011/9/17 Debraj Mallick : > i have done the same thing as it is written in the struts2 > documentation "http://struts.apache.org/2.x/docs/devmode.html";, > but the problem is it is not working, please let me know what i am missing. How do you deploy your app ? Do you modify the deployed file or l

struts2 properties file reload on modification

2011-09-16 Thread Debraj Mallick
hi all, in my application i need to reload the properties file every time i make any changes, it can be achieved by using struts.properties like struts.devMode=true struts.configuration.xml.reload=true struts.i18n.reload=true struts.custom.i18n.resources=global also we can do it in struts.xml

Re: Issue with localization: Messages not picked up from properties file

2010-04-27 Thread Wes Wannemacher
Kartik, First off, your first mapping doesn't "forward" it dispatches to the login.jsp page. If the validation file you have created is picked up when the user hits that url, then you are going to see the validation errors. Second, in your form tag, I would remove the '.action' from the action att

Issue with localization: Messages not picked up from properties file

2010-04-21 Thread Kartik Kumar
Hi All, In my package structure, I have package.properties file with the following key value pair: username=User Name password=Password In my simple login page: the form elements are defined with a key look up.. My action xml mappings are given below. The first action is a

Interceptor to load properties file

2010-01-20 Thread Bhaarat Sharma
I am using this approach to load properties http://struts.apache.org/2.0.14/docs/how-do-i-set-a-global-resource-bundle.html I want to load the properties on each request (without turning the devmode = true). How should I go about this? Should I turn ActionGlobalMessagesListener into an intercep

custom properties file not loading in Glassfish V2

2009-12-16 Thread Bhaarat Sharma
Hello, I have a Struts2 app in which my struts.properties resides in WEB-INF/classes. It contains the following line struts.custom.i18n.resources=mypropertyfile mypropertyfile also resides in WEB-INF/classes. and inside the properties file, for example I have the following: pdf.test.title

Re: Change single .properties file to one .properties file for every JSP

2009-04-08 Thread walki2
Hi Muthu, Thanks for the answer, that's all I wanted to know. Greetings, walki2 -- View this message in context: http://www.nabble.com/Change-single-.properties-file-to-one-.properties-file-for-every-JSP-tp22947889p22948672.html Sent from the Struts - User mailing list archive at Nabbl

Re: Change single .properties file to one .properties file for every JSP

2009-04-08 Thread Terry Gardner
no tool to do that, It has to be manually split into different properties file based on either package or action class as specified by Terry.. ~Muthu Terry Gardner-2 wrote: .properties file can be looked up based on the current Action, or a hierarchy is used to search for a key. If the Action

Re: Change single .properties file to one .properties file for every JSP

2009-04-08 Thread Muthu Velappan
I believe the question is more about whether any tool available to split his current bulk properties into a small package/action specific properties. I think there is no tool to do that, It has to be manually split into different properties file based on either package or action class as

Re: Change single .properties file to one .properties file for every JSP

2009-04-08 Thread Terry Gardner
.properties file can be looked up based on the current Action, or a hierarchy is used to search for a key. If the Action is named EnterEmployeeAction, then the .properties files are all preceded by EnterEmployeeAction, viz, EnterEmployeeAction_en.properties, and so forth. There is also a

Re: Change single .properties file to one .properties file for every JSP

2009-04-08 Thread Lukasz Lenart
2009/4/8 walki2 : > SomeFileName.properties > SomeFileName_en.properties > SomeFileName_fr.properties > SomeFileName_de.properties You can use package.properties for all actions in given package and below (in Struts2 ;-) Regards -- Lukasz http://www.lenart.org.pl/ -

Change single .properties file to one .properties file for every JSP

2009-04-08 Thread walki2
n one big properties file!! Is there an easy way to make a .properties file for every jsp? Or do I have to make it manually using copy and paste for about 80 JSP's? Greetings, walki2 -- View this message in context: http://www.nabble.com/Change-single-.properties-file-to-one-.properties-file

Re: show text in displaytag from properties file

2009-02-25 Thread Lukasz Lenart
t;. > How to configure displaytag to read from properties file? Take a look on that bug, there is attached adapter for Struts2 http://jira.codehaus.org/browse/DISPL-511 Reards -- Lukasz http://www.lenart.org.pl/ - To unsubscrib

show text in displaytag from properties file

2009-02-25 Thread Po Po
Hello, I used s2 with displaytag. I already create file textmessage.properties, this file contain: label.firstname=First Name label.lastname=Last Name But the problem is in table title show "label.firstname". How to configure displaytag to read from properties file? Th

Re: using apostrophes in a properties file with

2008-11-05 Thread Dave Newton
--- On Wed, 11/5/08, Nick Maunder wrote: > can someone tell me quickly how to get an apostrophe to > appear when using s:text? Probably not quicker than searching the web would: http://www.google.com/search?q=java+properties+%2Bapostrophe You may need to use a double apostrophe, but IIRC it depe

RE: using apostrophes in a properties file with

2008-11-05 Thread Pep Villar
Hi, you can try general.VettingNextUpdate=You won't be able to bid> From: [EMAIL PROTECTED]> To: user@struts.apache.org> Subject: using apostrophes in a properties file with > Date: Wed, 5 Nov 2008 14:53:35 +> > Hey guys > > > > can someone tell me

Re: using apostrophes in a properties file with

2008-11-05 Thread Sébastien Domergue
ing s:text? Here's a snippet of my properties file: general.VettingNextUpdate=You won\'t be able to bid as you can see I've tried with and without escaping the apostrophe character. How do I make the text appear as: You won't be able to bid ?

using apostrophes in a properties file with

2008-11-05 Thread Nick Maunder | Oathouse
Hey guys can someone tell me quickly how to get an apostrophe to appear when using s:text? Here's a snippet of my properties file: general.VettingNextUpdate=You won\'t be able to bid as you can see I've tried with and without escaping the apostrophe character. Ho

Re: Define specific .properties file for

2008-09-19 Thread Laurie Harper
Dimitris Mouchritsas wrote: Hi all, we have a disclaimer page in our application (using struts 1.3.8) and we want to display a possibly rather large legal text. So the thought is to create a disclaimer.properties file with only one key in it and for that specific jsp have a to load this discla

Define specific .properties file for

2008-09-19 Thread Dimitris Mouchritsas
Hi all, we have a disclaimer page in our application (using struts 1.3.8) and we want to display a possibly rather large legal text. So the thought is to create a disclaimer.properties file with only one key in it and for that specific jsp have a to load this disclaimer.properties and get the k

Re: how to read drop down from the properties file

2008-09-16 Thread Lukasz Lenart
Hi, You can make it a I18N resource, read via getText("month") in action, split in to an array and expose vie getter from action to jsp. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: reading drop down through properties file

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, sam thothi <[EMAIL PROTECTED]> wrote: > my question is i have month.properties file, where i have declared > > months = "january,february, march.." > january = "monday,tuesday , wednesday" > > in the first drop down i want to load months, and after > selecting for example jan

Re: reading drop down through properties file

2008-09-16 Thread sam thothi
Dave, my question is i have month.properties file, where i have declared months = "january,february, march.." january = "monday,tuesday , wednesday" in the first drop down i want to load months, and after selecting for example january then i want to load monday , tuesday and wednesday. I want

Re: reading drop down through properties file

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, sam thothi wrote: > Do any one has a sample code to do similar thing. public class TheAction extends ActionSupport { private String[] options; public String[] getOptions() { return options; } public String execute() { String[] options = StringUtils.split(ge

how to read drop down from the properties file

2008-09-16 Thread sam thothi
Can any one please let me know how to read a drop down through properties file I have two drop downs. I need to read the drop down values through the properties file . It would appreciate if any one can provide a sample code to do this kind of function. Say for example if i have in the

Re: reading drop down through properties file

2008-09-16 Thread sam thothi
Do any one has a sample code to do similar thing. thanks in advance for your help. On Tue, Sep 16, 2008 at 12:59 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Tue, 9/16/08, sam thothi wrote: > > Can any one please let me know how to read a drop down > > through prope

Re: reading drop down through properties file

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, sam thothi wrote: > Can any one please let me know how to read a drop down > through properties file I have two drop downs. I need to > read the drop down values through the properties file . There are a few options; the easiest is probably to get the property in you

reading drop down through properties file

2008-09-16 Thread sam thothi
Hi all, Can any one please let me know how to read a drop down through properties file I have two drop downs. I need to read the drop down values through the properties file . Say for example if i have in the properties file months.properties Month = "january,february,march.dec

Re: [Struts 2] NetBeans can't find my ResourceBundle properties file (localization issue)

2008-08-11 Thread Ylva Degerfeldt
Thanks a lot for answering again, Dave! I felt that my latest questions hardly deserved an answer since they were too basic. For that reason I have been reading some stuff myself to try to find answers.. (See below.) > If you're calling a JSP page directly (almost never a good idea) it won't go >

Re: [Struts 2] NetBeans can't find my ResourceBundle properties file (localization issue)

2008-08-11 Thread Dave Newton
--- On Mon, 8/11/08, Ylva Degerfeldt <[EMAIL PROTECTED]> wrote: > Well the action that should be executed after a submit from > the first page (called "NameAndCv.jsp") extends ActionSupport. > > But maybe this problem is due to another thing I'm > insecure about... > > I run my application just b

Re: [Struts 2] NetBeans can't find my ResourceBundle properties file (localization issue)

2008-08-11 Thread Ylva Degerfeldt
Dave Newton <[EMAIL PROTECTED]> wrote: > Does the action being executed extend ActionSupport? > > Dave > > > --- On Mon, 8/11/08, Ylva Degerfeldt <[EMAIL PROTECTED]> wrote: > >> From: Ylva Degerfeldt <[EMAIL PROTECTED]> >> Subject: [Struts 2] Net

Re: [Struts 2] NetBeans can't find my ResourceBundle properties file (localization issue)

2008-08-11 Thread Dave Newton
Does the action being executed extend ActionSupport? Dave --- On Mon, 8/11/08, Ylva Degerfeldt <[EMAIL PROTECTED]> wrote: > From: Ylva Degerfeldt <[EMAIL PROTECTED]> > Subject: [Struts 2] NetBeans can't find my ResourceBundle properties file > (localization issue) &

[Struts 2] NetBeans can't find my ResourceBundle properties file (localization issue)

2008-08-11 Thread Ylva Degerfeldt
Hi, I'm trying to use the localization method of having property files that define all the visible text using keys and values (e.g. "nameAndCv.title = Namn och cv"), but the problem is that NetBeans (5.5.1) can't seem to find my properties file (I only have one). I've re

Re: [S2] Subsitute variable in i18n properties file

2008-02-11 Thread hezjing
>> John This one works! > label.welcome = Welcome {name} > > > John > > This one doesn't work, it displayed a colon ":" instead of the message from the i18n properties file. > label.welcome = Welcome {0} > > > John > > This will thro

Re: [S2] Subsitute variable in i18n properties file

2008-02-11 Thread Wes Wannemacher
> > If that doesn't work, you should be able to use: > > John > > (*Chris*) > > On Feb 11, 2008 7:13 AM, hezjing <[EMAIL PROTECTED]> wrote: > > Hi > > > > If I have a message defined in i18n properties file shown below, > > > >

Re: [S2] Subsitute variable in i18n properties file

2008-02-11 Thread Chris Pratt
Change your property to label.welcome = Welcome {0} Then you might try: John If that doesn't work, you should be able to use: John (*Chris*) On Feb 11, 2008 7:13 AM, hezjing <[EMAIL PROTECTED]> wrote: > Hi > > If I have a message defined in i18n propert

[S2] Subsitute variable in i18n properties file

2008-02-11 Thread hezjing
Hi If I have a message defined in i18n properties file shown below, label.welcome = Welcome ${name} How can I subsitute the variable "name" in the JSP? I tried the following and obviously it doesn't work! John May be it is a good idea to describe the s

Re: [S2] Where should I save the I18N properties file?

2008-01-30 Thread hezjing
Hi The problem is solved by saving the properties in src/main/resources/com/dummy/action/package.properties src/main/resources/com/dummy/action/MyAction.properties Thank you! On Jan 30, 2008 6:05 PM, hezjing <[EMAIL PROTECTED]> wrote: > Hi > > I have an action in src/main/java/com/dummy/action

[S2] Where should I save the I18N properties file?

2008-01-30 Thread hezjing
Hi I have an action in src/main/java/com/dummy/action/MyAction.java and the locale messages defined in MyAction.properties and package.properties. I saved these properties files in src/main/java/com/dummy/action directory. When run (e.g. mvn jetty:run), the locale messages are not displayed. May

Re: reading properties file in action class

2007-08-31 Thread Ashish Kulkarni
roperties and abc_fr.properties file, > > if i have to print values from properties file in jsp i use tag > > and it will print value > depending > > on locale, > > But what i want to get those values in action class, is there an direct > > method to do so

Re: reading properties file in action class

2007-08-31 Thread nuwan chandrasoma
Hi, use getResources() method in the action Thanks, Nuwan On 8/31/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > > Hi > I have abc.properties and abc_fr.properties file, > if i have to print values from properties file in jsp i use tag > and it will print value dependi

reading properties file in action class

2007-08-31 Thread Ashish Kulkarni
Hi I have abc.properties and abc_fr.properties file, if i have to print values from properties file in jsp i use tag and it will print value depending on locale, But what i want to get those values in action class, is there an direct method to do so, Like some thing getText("PL1143.dateco

Re: Retriving values from a properties file using Struts 1.3.8

2007-08-16 Thread Laurie Harper
he.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:224) org.apache.jsp.index_jsp._jspx_meth_bean_005fmessage_005f0(index_jsp.java:104) org.apache.jsp.index_jsp._jspService(index_jsp.java:64) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) If I have understood well

RE: Retriving values from a properties file using Struts 1.3.8

2007-08-16 Thread kokro
005f0(index_jsp.java:107) This is a part of the stacktrace error -- View this message in context: http://www.nabble.com/Retriving-values-from-a-properties-file-using-Struts-1.3.8-tf4279774.html#a12183033 Sent from the Struts - User mailing list archive at Nabble.com.

RE: Retriving values from a properties file using Struts 1.3.8

2007-08-16 Thread Baseer Patel MD
.org Subject: RE: Retriving values from a properties file using Struts 1.3.8 The ApplicationResources.properties file is into (being just a simple application I have just copied the project into the webapps subdir without creating a .war file): Tomcat 5.5.23 installation dir\webapps\GestioneMP3\WE

RE: Retriving values from a properties file using Struts 1.3.8

2007-08-16 Thread kokro
sday, August 16, 2007 7:22 PM > To: user@struts.apache.org > Subject: Retriving values from a properties file using Struts 1.3.8 > > > Hi all, > > I'm developing a test application using Struts 1.3.8 and Java 1.5.0_12 > and I > have this problem: when I try t

RE: Retriving values from a properties file using Struts 1.3.8

2007-08-16 Thread Baseer Patel MD
ing values from a properties file using Struts 1.3.8 Hi all, I'm developing a test application using Struts 1.3.8 and Java 1.5.0_12 and I have this problem: when I try to get the value linked to the key "login.title" I get this error: org.apache.jasper.JasperException: Excep

Retriving values from a properties file using Struts 1.3.8

2007-08-16 Thread kokro
rtTag(MessageTag.java:224) org.apache.jsp.index_jsp._jspx_meth_bean_005fmessage_005f0(index_jsp.java:104) org.apache.jsp.index_jsp._jspService(index_jsp.java:64) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) If I have understood well it should mean that the prope

Re: How to display the ' character from a .properties file

2007-07-12 Thread Josh Vickery
d to escape single quotes (with a single quote) in any messages. Well perhaps not a bug exactly, but since the ' character is valid in properties files, and since some I8n code handles them when found in properties files, the Struts 2 requirement of escaping them within the .properties file coul

Re: How to display the ' character from a .properties file

2007-07-12 Thread Niall Pemberton
On 7/12/07, Josh Vickery <[EMAIL PROTECTED]> wrote: Actually, I think this is a bug in the handling of MessageResources in Struts 2. Not only do ' characters in properties files fail to display, they cause parameter substitution to fail. For example, if you have a properties file

Re: How to display the ' character from a .properties file

2007-07-12 Thread TonyD
I wrote my string in my .properties file mylabel=Now it''s working and then a got it in my .jsp with Antonio Petrelli-3 wrote: > > 2007/7/12, TonyD <[EMAIL PROTECTED]>: >> >> >> Thanks it works! > > > > > Mmm... this means that

Re: How to display the ' character from a .properties file

2007-07-12 Thread Josh Vickery
Actually, I think this is a bug in the handling of MessageResources in Struts 2. Not only do ' characters in properties files fail to display, they cause parameter substitution to fail. For example, if you have a properties file: foo=Message's for {0} and you attempt to display i

Re: How to display the ' character from a .properties file

2007-07-12 Thread Antonio Petrelli
2007/7/12, TonyD <[EMAIL PROTECTED]>: Thanks it works! Mmm... this means that there's something wrong when you display the text. I think that, before writing the string, you have to escape it. How, and where, do you write the string? Antonio

Re: How to display the ' character from a .properties file

2007-07-12 Thread TonyD
Thanks it works! Pascal Lalonde-4 wrote: > > This should be the good solution, that's what we do ... > > [EMAIL PROTECTED] wrote: >> try to double the ' >> >> ex.: >> >> mylabel=I don''t know how >> >> >>&g

Re: How to display the ' character from a .properties file

2007-07-12 Thread Pascal Lalonde
This should be the good solution, that's what we do ... [EMAIL PROTECTED] wrote: try to double the ' ex.: mylabel=I don''t know how If in my .properties file I have text with the ' character my.properties (file) mylabel=I don't know how ... The output d

RE How to display the ' character from a .properties file

2007-07-12 Thread MLENEVEUT
I had the same problem, and I put ’ instead of ' in my .properties. Ragards, Michaël TonyD <[EMAIL PROTECTED]> 12/07/2007 14:29 Veuillez répondre à "Struts Users Mailing List" A user@struts.apache.org cc Objet How to display the ' character from a .prope

Re: How to display the ' character from a .properties file

2007-07-12 Thread acogoluegnes
try to double the ' ex.: mylabel=I don''t know how > > If in my .properties file I have text with the ' character > > my.properties (file) > > mylabel=I don't know how > ... > > > The output doesn't display the ' character

Re: How to display the ' character from a .properties file

2007-07-12 Thread Antonio Petrelli
2007/7/12, TonyD <[EMAIL PROTECTED]>: Do I need a special character before the ' character? Which one? I could say the backslash ( \ ) but the apostrophe is not a special character to be escaped (such as = ! ) so I wonder why you cannot see it... Antonio

How to display the ' character from a .properties file

2007-07-12 Thread TonyD
If in my .properties file I have text with the ' character my.properties (file) mylabel=I don't know how ... The output doesn't display the ' character I dont know how Do I need a special character before the ' character? Which one? Thanks. -- View this

[S2] Accessing Parameters In the Properties File

2007-06-08 Thread Hoying, Ken
I really like how I can access the field name and use it in forming the error message for validations. Such as: err.msg.requiredstring =$\{getText('label.' + fieldName)} is required. Where the validation framework passes a variable called "fieldName". I would like to use this same appraoch for

RE: properties file

2007-04-04 Thread Syed Ibrahim
Thanks Dave. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 04, 2007 5:12 PM To: Struts Users Mailing List Subject: Re: properties file --- Syed Ibrahim <[EMAIL PROTECTED]> wrote: > Am going through struts2-blank-2.0.6 project, t

Re: properties file

2007-04-04 Thread Dave Newton
--- Syed Ibrahim <[EMAIL PROTECTED]> wrote: > Am going through struts2-blank-2.0.6 project, there > is HelloWorld.jsp file, while executing this file it > searches for package.properties file which is > not defined in the HelloWorld.jsp. > > Can anybody please let me know where it is defined. /W

RE: properties file

2007-04-04 Thread Syed Ibrahim
Thanks lot Victor. Ibrahim -Original Message- From: VictorR [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 04, 2007 4:07 PM To: user@struts.apache.org Subject: Re: properties file Hi Ibrahim, I don't know where defined is, but if you want you can change this behavior settin

Re: properties file

2007-04-04 Thread VictorR
Hi Ibrahim, I don't know where defined is, but if you want you can change this behavior setting the "struts.custom.i18n.resources" property as a constant into the struts.xml file. Note the value must not contains ".properties" sufix!! regards, __Billa__ wrote: > > > Hi All, > > Am goin

properties file

2007-04-04 Thread Syed Ibrahim
Hi All, Am going through struts2-blank-2.0.6 project, there is HelloWorld.jsp file, while executing this file it searches for package.properties file which is not defined in the HelloWorld.jsp. Can anybody please let me know where it is defined. Thanks a lot. Ibrahim ---

[S2] Mixed zero/xml config; classname properties file issue?

2007-03-18 Thread Dave Newton
of MailreaderSupport) to zero-config, but their JSPs are no longer picking up properties from the classname-based properties file. Is this a consequence of an incomplete conversion, a "limitation" of zero

Re: Need suggestion to load resource properties file dynamically

2007-03-01 Thread Prithivirajan Dhamodharan
Thanks Laurie, Some code eg., or templates would be really helpful.. On 3/2/07, robin bajaj <[EMAIL PROTECTED]> wrote: Hi there, I am looking for similar results (*dynamically load properties file without restarting the server)) >You'll need to implement your own MessageResour

  1   2   >