Re: Action chaining not forwarding ModelDriven model properties

2018-03-03 Thread Yasser Zamani
On 2/28/2018 3:47 PM, shahzad.ismail@ wrote: > I've debugged it a bit and able to figure out that, initially, at the start > of action1, request.getParamater("modelprop") is null then I set modelprop in > the action1 method which makes mymodel.modelprop == "something" and > request.getAttribut

Re: Action chaining not forwarding ModelDriven model properties

2018-03-01 Thread Lukasz Lenart
of the same action class. > The **problem** is that action1 --> action2 is passing action variables but > not passing any properties of model even though action2 --> action3 is > passing all the action variables as well as model properties. >

Action chaining not forwarding ModelDriven model properties

2018-02-28 Thread shahzad . ismail
need to pass ModelDriven model as well as some action member variables, some of them are non-strings. All 3 actions are chaining to different methods of the same action class. The **problem** is that action1 --> action2 is passing action variables but not passing any properties of mode

Re: Populate nested properties

2018-01-03 Thread José Antonio Delgado Trujillo
ublic Class Bean_A{ >> private Bean_B beanB; >> ... >> } >> >> A form >> >> >> >> >> … >> >> >> When i submit the form the action class populate the nested properties text >> and number? > > If your act

Re: Populate nested properties

2018-01-02 Thread Yasser Zamani
an_B beanB; > ... > } > > A form > > > > > … > > > When i submit the form the action class populate the nested properties text > and number? If your action has getBeanA() method and your Bean_A class has getBeanB() method and your Bean_B cl

Populate nested properties

2018-01-02 Thread José Antonio Delgado Trujillo
Suppose that i have a nested Bean in a model class. public Class Bean_B{ private String text; private int number; ... } public Class Bean_A{ private Bean_B beanB; ... } A form … When i submit the form the action class populate the nested properties text

Re: xml validation with indexed properties.

2017-08-02 Thread Christoph Nenning
> I'm using struts and got issue with their xml validation framework. I have > form with some indexed properties where element is just plain String. And I > need make validation for it. I tried to use indexedListProperty for this > case, but it doesn't work and as I read in

xml validation with indexed properties.

2017-08-01 Thread Constantine Schokk
I'm using struts and got issue with their xml validation framework. I have form with some indexed properties where element is just plain String. And I need make validation for it. I tried to use indexedListProperty for this case, but it doesn't work and as I read in 'Struts in A

Re: Accessing action properties from JSPs

2015-10-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lukasz, On 10/4/15 3:49 AM, Lukasz Lenart wrote: > 2015-10-03 17:50 GMT+02:00 Christopher Schultz > : >> Is this the latest wisdom for accessing action properties from >> JSPs using EL? >> >> https://struts.apache

Re: Accessing action properties from JSPs

2015-10-04 Thread Lukasz Lenart
2015-10-03 17:50 GMT+02:00 Christopher Schultz : > Is this the latest wisdom for accessing action properties from JSPs > using EL? > > https://struts.apache.org/docs/access-to-valuestack-from-jsps.html > > So if my action has a "public String getItems)" method, I'

RE: Accessing action properties from JSPs

2015-10-03 Thread Martin Gainty
> To: user@struts.apache.org > From: ch...@christopherschultz.net > Subject: Accessing action properties from JSPs > Date: Sat, 3 Oct 2015 11:50:31 -0400 > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > All, > > Is this the latest wisdom for acce

Accessing action properties from JSPs

2015-10-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, Is this the latest wisdom for accessing action properties from JSPs using EL? https://struts.apache.org/docs/access-to-valuestack-from-jsps.html So if my action has a "public String getItems)" method, I'd like to do someth

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
figuration > found for the specified action: 'register' in namespace: ''. Form action > defaulting to 'action' attribute's literal value. > > It's a bit frustrating to get stuck with this kind of issue but I think it > could be some problem

Re: Unable to find keys located in .properties file

2015-03-12 Thread Jeanderson
ction: 'register' in namespace: ''. Form action defaulting to 'action' attribute's literal value. It's a bit frustrating to get stuck with this kind of issue but I think it could be some problem hidden somewhere. Both .java and .properties files are in the plac

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
7;register' in namespace: ''. Form action defaulting to 'action' attribute's literal value. " It is not clear for me what is wrong, it is like the framework can't find the properties files for some reason. Any idea of what am I missing? [1] https://github.

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

Re: Null values for Nested object properties after Form submission.

2014-11-26 Thread Arpan
Hi Lukasz, I have changed accordingly and values are populating properly. Thank you for that link. Cheers On Wed, Nov 26, 2014 at 10:01 PM, Lukasz Lenart wrote: > 2014-11-26 17:26 GMT+01:00 Arpan : > > Hi Lukasz, > > > > Even after adding no-arg constructor, the

Re: Null values for Nested object properties after Form submission.

2014-11-26 Thread Lukasz Lenart
2014-11-26 17:26 GMT+01:00 Arpan : > Hi Lukasz, > > Even after adding no-arg constructor, the properties of nested > object(application) remains null. > But I am getting values of the properties of upper level object > 'ConfigBean' properly. > > Is

Re: Null values for Nested object properties after Form submission.

2014-11-26 Thread Arpan
Hi Lukasz, Even after adding no-arg constructor, the properties of nested object(application) remains null. But I am getting values of the properties of upper level object 'ConfigBean' properly. Is there anything I am missing! Thanks On Wed, Nov 26, 2014 at 5:42 PM, Lukasz Len

Re: Null values for Nested object properties after Form submission.

2014-11-26 Thread Lukasz Lenart
2014-11-26 12:36 GMT+01:00 Arpan : > Hi, > > I have a nested bean object, whose properties I am able to load in my jsp > and I can see the values. > But after Form submission, I am getting null values of the properties of > the nested object in my action. > I am implementing

Null values for Nested object properties after Form submission.

2014-11-26 Thread Arpan
Hi, I have a nested bean object, whose properties I am able to load in my jsp and I can see the values. But after Form submission, I am getting null values of the properties of the nested object in my action. I am implementing ModelDriven interface. ConfigBean has 'application' as its n

Re: Anyway to map properties to different request names?

2014-11-06 Thread Christoph Nenning
> Paul Benedict kirjoitti 5.11.2014 kello 22.54: > > It bothers me that the Java programming model dictates the parameter names. > > In theory "personId" could be sent as "a" -- although a variable named "a" > > in Java is bad naming conventions. There isn't a good technical reason to > > keep

Re: Anyway to map properties to different request names?

2014-11-05 Thread Heikki Hyyrö
Paul Benedict kirjoitti 5.11.2014 kello 22.54: > It bothers me that the Java programming model dictates the parameter names. > In theory "personId" could be sent as "a" -- although a variable named "a" > in Java is bad naming conventions. There isn't a good technical reason to > keep this 1:1 mapp

Re: Anyway to map properties to different request names?

2014-11-05 Thread Paul Benedict
It bothers me that the Java programming model dictates the parameter names. In theory "personId" could be sent as "a" -- although a variable named "a" in Java is bad naming conventions. There isn't a good technical reason to keep this 1:1 mapping. The shorter the bytes sent too the better And i

Re: Anyway to map properties to different request names?

2014-11-05 Thread JOSE L MARTINEZ-AVIAL
You only need to set the attribute name of the field You can even use a different Id, if you want to refer to the field in javascript. Why does it bother you? 2014-11-05 15:39 GMT-05:00 Paul Benedict : > Let's say I have a getter/setter for field personId. That means in my > markup, I need to

Anyway to map properties to different request names?

2014-11-05 Thread Paul Benedict
Let's say I have a getter/setter for field personId. That means in my markup, I need to have a field named personId too. However, I am not really found of bleeding Java naming conventions into my web page. Shouldn't there be a way -- is there a way? -- of assigning another name to it? Hopeful exam

Re: Mapped Properties in Struts 2

2014-09-02 Thread Lukasz Lenart
2014-09-02 9:41 GMT+02:00 Harish Panwar : > Hi All, > > We are migrating our website from Struts 1 to Struts 2. Everything is > working fine except the mapped properties. > > Lets say we have text-field in our jsp: > > > > Getter-Setter for this field were like this

Mapped Properties in Struts 2

2014-09-02 Thread Harish Panwar
Hi All, We are migrating our website from Struts 1 to Struts 2. Everything is working fine except the mapped properties. Lets say we have text-field in our jsp: Getter-Setter for this field were like this in struts1: public String getArp(String key) { int index=Integer.parseInt(key

Re: Whitespace in String-mapped properties

2014-08-06 Thread Christoph Nenning
> I'm trying to implement mapped properties for buttons on a form. > Given the following code: > > private Map removeButtons = new HashMap(); > public Map getRemoveButtons() { > log.debug("Call to getRemoveButtons()"); > return removeButtons; >

Re: Whitespace in String-mapped properties

2014-08-06 Thread Lukasz Lenart
2014-08-05 20:57 GMT+02:00 Zimnoch, Todd Contractor : > I'm trying to implement mapped properties for buttons on a form. Given the > following code: > > private Map removeButtons = new HashMap(); > public Map getRemoveButtons() { > log.debug("Call to getRem

Whitespace in String-mapped properties

2014-08-06 Thread Zimnoch, Todd Contractor
I'm trying to implement mapped properties for buttons on a form. Given the following code: private Map removeButtons = new HashMap(); public Map getRemoveButtons() { log.debug("Call to getRemoveButtons()"); return removeButtons; } and the following HTML: the getRemoveB

回复: 回复: 回复: 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

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: Do properties written in an external file need ApplicationAware ?

2014-06-04 Thread Chris
can have a look at http://commons.apache.org/proper/commons-configuration/userguide/user_guide.html which will allow you to read the properties file. Then you have several options for exposing the properties to your Actions, one of them would be to store an object in the Application map and have yo

Re: Do properties written in an external file need ApplicationAware ?

2014-06-03 Thread Antonios Gkogkakis
Hi Chris, I'm not sure if struts has a feature that would read property files and put them in the Application scope for you automatically. You can have a look at http://commons.apache.org/proper/commons-configuration/userguide/user_guide.html which will allow you to read the properties

Do properties written in an external file need ApplicationAware ?

2014-06-03 Thread Chris
Hello,I would like to use properties (*) written in an  external file, and read them only once. Do I have to use ApplicationAware, or something else. Whatever, could you give examples please ? (*) some properties like JDBC or LDAP connection's parameters. Thanks Chris

Re: OGNL Indexed and Object Indexed Properties

2014-05-20 Thread foo bar
blic void setFieldMap(MyMap map) { > > } > > > > private Long index = 1L; > > > > public Long getIndex() { > > System.out.println(">> getIndex()"); > > return index; > > } > > > > public void setIndex(Long index) { > >

Re: OGNL Indexed and Object Indexed Properties

2014-05-20 Thread Christoph Nenning
t; setIndex(" + index + ")"); > this.index = index; > } > > On my jsp > > > > > > > Result is > > During get > > >> getIndex() > >> getIndex() > >> getFieldMap() > my...@1.get(1) > my...@2.get(1) &g

Re: OGNL Indexed and Object Indexed Properties

2014-05-20 Thread foo bar
getValue() I think since it implements a map, ".value" get interpreted as get("value"); During set >> getFieldMap() my...@1.get(1) my...@2.get(1) This I can't work with since setValue() isn't called anywhere. On Tue, May 20, 2014 at 3:02 PM, Christoph Nenni

Antwort: OGNL Indexed and Object Indexed Properties

2014-05-20 Thread Christoph Nenning
> Question: > According to OGNL ( > http://commons.apache.org/proper/commons-ognl/language-guide.html) under > heading JavaBeans Indexed Properties and OGNL Object Indexed Properties, > getFieldWithIndex(int index) should be called, but it isn't, same goes with > getFieldW

OGNL Indexed and Object Indexed Properties

2014-05-20 Thread foo bar
OGNL Indexed and Object Indexed Properties Hi, I'm wondering why this code is not working. I'm using struts 2.3.16.1 and ognl 3.0.6. In my action class I have this public String[] getFieldArray() { System.out.println(">> getFieldArray()"); return null; } public

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-08 Thread Chris
= ServletActionContext.getServletContext().getRealPath(""); Properties prop = new Properties(); try {     // load properties from the class path     prop.load(new FileInputStream(path             + "//WEB-INF//classes//ldapconf.properties")); } catch (IOException ex) {     ex.printSta

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Leonidas Papadakis
Hi there, webwork used to have a class that would easily read external sources like xml files, but i do not recall the class name now. If you want to read from simple property files you could use something like : String path = ServletActionContext.getServletContext().getRealPath("");

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
Thanks  , I 'll try with commons-configuration De : Umesh Awasthi À : Struts Users Mailing List ; Chris Envoyé le : Vendredi 6 septembre 2013 13h45 Objet : Re: Struts 2.3.15.1 How to read external properties files or conf files Have you tried

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Dave Newton
I don't understand the problem. Reading a file is trivial. Is the issue getting the values *out* of the file? I mean, Java provides its own properties handling that can read classpath resources. Dave On Fri, Sep 6, 2013 at 7:40 AM, Chris wrote: > In fact the problem is how to dec

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Umesh Awasthi
Have you tried http://commons.apache.org/proper/commons-configuration/ it can read various type of property files On Fri, Sep 6, 2013 at 5:10 PM, Chris wrote: > In fact the problem is how to declare and use external files to work with > external properties. > > host=xxx.xxx.xxx.xxx

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
In fact the problem is how to declare and use external files to work with external properties. host=xxx.xxx.xxx.xxx port= ...etc Should I understand that only few people use  external configuration files with struts web applications ? De : Dave Newton

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
rs Mailing List Envoyé le : Vendredi 6 septembre 2013 13h15 Objet : Re: Struts 2.3.15.1 How to read external properties files or conf files Without any code it's hard to know what's happening. I do ask you to seriously reconsider refactoring database access out of the action or

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
Well, I have absolutely no problem with log4j.properties as I said above. I'm just trying to find a framework for all other external files  ( .properties or .configuration or unname.properties files ) De : Martin Gainty À : Struts Users Mailing List E

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Dave Newton
perties > or > > java.io.FileNotFoundException : ldapconfiguration.conf > > > Regards > > > > De : "umeshawas...@gmail.com" > À : Struts Users Mailing List ; Chris < > christal...@yahoo.fr> > Envoyé le : Vendredi 6 septembre 2013

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Miguel Almeida
> De : "umeshawas...@gmail.com" > À : Struts Users Mailing List ; Chris > > Envoyé le : Vendredi 6 septembre 2013 10h50 > Objet : Re: Struts 2.3.15.1 How to read external properties files or conf > files > > > Log4j file will be ready by Log4j f

RE: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Martin Gainty
log4j.configuration is not defined, then set the string variable resource to its default value "log4j.properties". http://logging.apache.org/log4j/1.2/manual.html then use Log4j Loader.getResource to load properties file http://logging.apache.org/log4j/1.2/apidocs/org/apache/log

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
st ; Chris Envoyé le : Vendredi 6 septembre 2013 10h50 Objet : Re: Struts 2.3.15.1 How to read external properties files or conf files Log4j file will be ready by Log4j framework and not exactly by struts2 Can you define where and how you want to read your property files? Sent from BlackBerry®

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread umeshawasthi
Users Mailing List" Subject: Struts 2.3.15.1 How to read external properties files or conf files Using log4j.properties instead of log4j.xml is not a problem with Struts 2.3.15.1 ( or should it be ? ) But with my own properties files ( jdbc.properties ) or configuration files ( ldap

Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
Using log4j.properties instead of log4j.xml is not a problem with Struts 2.3.15.1 ( or should it be ? ) But with my own properties files ( jdbc.properties ) or configuration files ( ldap.conf ) it doesn't work. Is there any example with external files . Not an upload  file by input

Re: Best place to define properties for plugin

2012-09-05 Thread Umesh Awasthi
Thanks Gabriel for the valuable inputs On Wed, Sep 5, 2012 at 7:48 PM, Gabriel Belingueres wrote: > 2012/9/4 Umesh Awasthi : > > I am in process to create a plugin and i need to pass provider class as > > well some other properties to the plugin bean class. > > though i ca

Re: Best place to define properties for plugin

2012-09-05 Thread Gabriel Belingueres
2012/9/4 Umesh Awasthi : > I am in process to create a plugin and i need to pass provider class as > well some other properties to the plugin bean class. > though i can define them in side the plugin's xml file but want these > properties to be configurable. I know of several w

Re: accessing properties/attributes (scope)

2012-08-20 Thread Christopher Johnson
Thank you, that makes sense. I've read that page a few dozen times and it did not click until you gave the example. Best, -Chris On Mon, Aug 20, 2012 at 3:26 PM, Lukasz Lenart wrote: > 2012/8/20 Christopher Johnson : > > From what I've read there are the following scopes in struts. > > > >-

Re: accessing properties/attributes (scope)

2012-08-20 Thread Lukasz Lenart
2012/8/20 Christopher Johnson : > From what I've read there are the following scopes in struts. > >- application >- session >- request >- page >- action > > I can see application, session, request in and see how to > access the different parts via #application, #session, #reque

Re: accessing properties/attributes (scope)

2012-08-20 Thread Christopher Johnson
Lukasz, I changed to include 'scope="request"' and I now see my variables in the request scope and can access them via #request.url. Thank you. --- >From what I've read there are the following scopes in struts. - application - session - request - page - action I can see applicat

Re: accessing properties/attributes

2012-08-20 Thread Lukasz Lenart
2012/8/20 Christopher Johnson : > #url turns out to be null because it can't. does not show it > anywhere. Did you try #request.url ? As this should be a request scoped variable. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: accessing properties/attributes

2012-08-20 Thread Christopher Johnson
On Mon, Aug 20, 2012 at 6:42 AM, Lukasz Lenart wrote: > 2012/8/19 Christopher Johnson : > > fails because the TLD does not accept > > Did you try: > > This gives an error message because ${} expressions are not allowed in the test attribute. > > or > > > Since currentURL is created via the #c

Re: accessing properties/attributes

2012-08-20 Thread Lukasz Lenart
2012/8/19 Christopher Johnson : > fails because the TLD does not accept Did you try: or Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additio

accessing properties/attributes

2012-08-19 Thread Christopher Johnson
I want to be able to access tiles attributes within a template via the construction. The landing page has some code that looks like The pseudo code is something like: if currentURL == url then txt else txt endif I can import the tile attribute into the scope of the JSP with an

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: JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread Chris Pratt
t a Java reflection exception. Even if it > worked, it would have include too many things I don't want. According to > the documentation, it "... serialize properties in all base classes (up to > Object) ". > > I could try to use the excludeProperties parameter, but th

Re: JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread jlmagc
There is also a includeProperties that you can use, to select only the properties you want to expose through json. Sent via BlackBerry from T-Mobile -Original Message- From: Daniel Ruan Date: Thu, 3 Nov 2011 15:59:23 To: Struts Users Mailing List Reply-To: "Struts Users Mailing

Re: JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread Daniel Ruan
Thanks, everybody. I tried ignoreHierarchy, but got a Java reflection exception. Even if it worked, it would have include too many things I don't want. According to the documentation, it "... serialize properties in all base classes (up to Object) ". I could try to use the ex

Re: JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread Maurizio Cucchiara
2011 16:56, Daniel Ruan wrote: > Hey, > > How do I include some of a parent action's properties in the JSON result of > an action? In the following example, I'd like MyAction2's JSON result > includes name1 and name2 from MyAction1 too. > > public abstraction c

Re: JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread Nelio Souza Santos Filho
antos Filho Solution Engineer http://about.me/nssantos Em 03/11/2011, às 13:56, Daniel Ruan escreveu: > Hey, > > How do I include some of a parent action's properties in the JSON result of > an action? In the following example, I'd like MyAction2's JSON result > incl

Re: JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread jlmagc
There is a property called ignorehierarchy which takes care of that. --Mensaje original-- De: Daniel Ruan Para: Struts Users Mailing List Responder a: Struts Users Mailing List Asunto: JSON Plugin to Include Parent Action's Properties Enviado: 3 Nov, 2011 11:56 Hey, How do I include

JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread Daniel Ruan
Hey, How do I include some of a parent action's properties in the JSON result of an action? In the following example, I'd like MyAction2's JSON result includes name1 and name2 from MyAction1 too. public abstraction class MyAction1 extends ActionSupport { protect

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

  1   2   3   4   5   6   7   8   9   10   >