custom tag called with bean properties as attributes

2004-03-25 Thread Kransen, J.
Hello, I'm trying to iterate through a collection of beans and call a custom tag for each bean. logic:iterate id=dezeSchaal name=%=Risc.BEREKENING% property=profielSchalen / risc:staaf schaal_nummer=bean:write name=dezeSchaal property=schaalNummer/

RE: custom tag called with bean properties as attributes

2004-03-25 Thread Hibbs, David
risc:staaf schaal_nummer=bean:write name=dezeSchaal property=schaalNummer/ This is a standard tag nesting error. You can't put tags inside of tag attributes. You CAN put scriptlets, such as your first tag... logic:iterate id=dezeSchaal

Re: Validation Question with Indexed Properties

2004-03-22 Thread Craig Tataryn
that indexed properties for the validator do not work in javascript? Or am I doing something wrong? Thanks, Craig tataryn:craig/ tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Using struts-config to configure properties in action form

2004-03-22 Thread Chan, Jim
I am trying to configure properties in my ActionForm using the struts-config file as follows. form-bean name=myForm type=com.myCompany.MyForm set-property property=foo value=bar / /form-bean public Class MyForm extends ActionForm { private String foo; public void

Re: Using struts-config to configure properties in action form

2004-03-22 Thread Saul Q Yuan
set-property is not a sub-tag of form-bean, form-property is though. If you're not using dynamic form bean, you don't need to define the properties in the form-bean tag. HTH, Saul - Original Message - From: Chan, Jim To: '[EMAIL PROTECTED]' Sent: Monday, March 22, 2004 8:27

RE: Using struts-config to configure properties in action form

2004-03-22 Thread Chan, Jim
[mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 6:28 PM To: Struts Users Mailing List Subject: Re: Using struts-config to configure properties in action form set-property is not a sub-tag of form-bean, form-property is though. If you're not using dynamic form bean, you don't need to define

Re: Using struts-config to configure properties in action form

2004-03-22 Thread Kumar M
haven't been able to hook it up to my form yet. -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 6:28 PM To: Struts Users Mailing List Subject: Re: Using struts-config to configure properties in action form set-property is not a sub-tag of form-bean

Validation Question with Indexed Properties

2004-03-21 Thread Craig Tataryn
) { if (bCancel) return true; else return validateRequired(form); } function required () { } So does this mean that indexed properties for the validator do not work in javascript? Or am I doing something wrong? Thanks, Craig

Re: asking for help about indexed properties

2004-03-12 Thread Lenny Sorey
html:submit property=submitValueSubmit Changes/html:submit /html:form I searched online about the meaning of these properties only fail to find any clear descritpions, the api of struts says little about them, can anyone tell me the meanings of them? by the way, for this jsp file ,can any

help me about indexed properties

2004-03-11 Thread Mu Mike
I have the below jsp file needs help %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body html:form action=indexedtest5.do logic:iterate name=stringbean property=stringArray id=foo indexId=ctr !--what do

RE: help me about indexed properties

2004-03-11 Thread Mu Mike
sorry, the last mail doesnt display correctly, but when I tried to write a new one, I saw it displays correctly as the below ThanksRegards From: Mu Mike [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: help me about indexed properties Date

(again)help me about indexed properties

2004-03-11 Thread Mu Mike
well,sorry again, my qeustion is the below I have the below jsp file needs help %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body html:form action=indexedtest5.do logic:iterate name=stringbean property=stringArray id=foo

Re: (again)help me about indexed properties

2004-03-11 Thread Hubert Rabago
--- Mu Mike [EMAIL PROTECTED] wrote: (QUESTION: what do name property ,id ,indexID mean here? what value can I set to them?) I searched online only fail to find any doc that give detailed explaination about these proeprties html:text name=stringbean

RE: help me about indexed properties

2004-03-11 Thread Craig Tataryn
Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: help me about indexed properties Date: Fri, 12 Mar 2004 02:49:47 + I have the below jsp file needs help %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic

asking for help about indexed properties

2004-03-11 Thread Mu Mike
property='%= labelValue[ + ctr + ].label %' / (QUESTION: WHAT DO name,property MEAN HERE? WHAT VALUES CAN I SET TO THEM?) /logic:iterate html:submit property=submitValueSubmit Changes/html:submit /html:form I searched online about the meaning of these properties only fail to find any clear

Re: asking for help about indexed properties

2004-03-11 Thread Srikanth Shenoy
Changes/html:submit /html:form I searched online about the meaning of these properties only fail to find any clear descritpions, the api of struts says little about them, can anyone tell me the meanings of them? by the way, for this jsp file ,can any one give me the related bean

Re: Where Do I Put This properties File (internationalization)

2004-03-11 Thread Srikanth Shenoy
: And mvnplugin_mvnforum_MVNForumConfig is a properties file. Please advice regarding the directory in which this properties file is supposed to be. It goes in the same place as your *.java code files. As you have it, there is no directory for it, so it would go in the root directory of your

RE: help me about indexed properties

2004-03-11 Thread Mu Mike
PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: help me about indexed properties Date: Thu, 11 Mar 2004 21:11:42 -0600 (CST) Hi Mike, the attributes for logic iterate are all explained here: http://jakarta.apache.org/struts/userGuide/struts-logic.html

Re: asking for help about indexed properties

2004-03-11 Thread Michael McGrady
/html:form I searched online about the meaning of these properties only fail to find any clear descritpions, the api of struts says little about them, can anyone tell me the meanings of them? by the way, for this jsp file ,can any one give me the related bean files that can be used in it? ThanksRegards

RE: Header for errors (no HTML in the .properties file)

2004-03-06 Thread Karr, David
: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, March 05, 2004 2:38 PM To: Struts Users Mailing List Subject: Header for errors (no HTML in the .properties file) I'm using this to display errors: div class=error ul html-el:messages id=msg message=false lic:out value

Re: Where Do I Put This properties File (internationalization)

2004-03-05 Thread Adam Hardy
On 03/05/2004 05:16 AM Caroline Jen wrote: And mvnplugin_mvnforum_MVNForumConfig is a properties file. Please advice regarding the directory in which this properties file is supposed to be. It goes in the same place as your *.java code files. As you have it, there is no directory for it, so

Header for errors (no HTML in the .properties file)

2004-03-05 Thread Wendy Smoak
I'm using this to display errors: div class=error ul html-el:messages id=msg message=false lic:out value=${msg}//li /html-el:messages /ul /div How do I put the old Validation ErrorYou must correct the following error(s) before proceeding: text at the top if

Re: Header for errors (no HTML in the .properties file)

2004-03-05 Thread Hubert Rabago
Check the logic:messagesPresent and logic:messagesNotPresent and see if they do the trick for you. - Hubert --- Wendy Smoak [EMAIL PROTECTED] wrote: I'm using this to display errors: div class=error ul html-el:messages id=msg message=false lic:out value=${msg}//li

RE: Header for errors (no HTML in the .properties file)

2004-03-05 Thread Wendy Smoak
From: Hubert Rabago [mailto:[EMAIL PROTECTED] Check the logic:messagesPresent and logic:messagesNotPresent and see if they do the trick for you. Yes, logic-el:messagesPresent did the trick. Thanks! But I still think it should be possible with JSTL... -- Wendy Smoak Application Systems

Re: Header for errors (no HTML in the .properties file)

2004-03-05 Thread Niall Pemberton
(no HTML in the .properties file) I'm using this to display errors: div class=error ul html-el:messages id=msg message=false lic:out value=${msg}//li /html-el:messages /ul /div How do I put the old Validation ErrorYou must correct the following error(s) before

Where Do I Put This properties File (internationalization)

2004-03-04 Thread Caroline Jen
I am using Struts and internationalization. I have code like: private static final String OPTION_FILE_NAME = mvnplugin_mvnforum_MVNForumConfig; static { ResourceBundle res = ResourceBundle.getBundle(OPTION_FILE_NAME); } And mvnplugin_mvnforum_MVNForumConfig is a properties

is there any way to include HTML in message properties file?

2004-02-29 Thread Menke, John
I would like to do something like this: key.name= b my message in bold /b is there any way to get the messages tag to output escaped hmtl? -john - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: is there any way to include HTML in message properties file?

2004-02-29 Thread David Adelson
, February 29, 2004 7:49 PM To: Struts (E-mail) Subject: is there any way to include HTML in message properties file? I would like to do something like this: key.name= b my message in bold /b is there any way to get the messages tag to output escaped hmtl? -john

RE: is there any way to include HTML in message properties file?

2004-02-29 Thread Menke, John
: is there any way to include HTML in message properties file? If its just for messages, We do the following This defines the header and footer for a message, IE, we set the color and an unordered list !-- error HTML header and footer (note: errors. is required by struts) -- errors.header=p align

java.lang.reflect.InvocationTargetException when using Indexed properties

2004-02-27 Thread Julio Cesar De Salvo
to NullException. Any ideas, about how to name the getters/setters for the indexed properties (in my case is a bean with Strings). java.lang.reflect.InvocationTargetException sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown

Resource properties

2004-02-19 Thread Daniel
Threre is a way for test if my resource properties file is in memory , because my application can't read any key of that file, and I made other application (for test), I used the way and works ok. I'm use easyStruts an eclipse and I have this message: Faltal error on loading

Re: Problem Dynamically creating form properties

2004-02-18 Thread Adam Hardy
sounds interesting and I'm up for a bit of collaboration. Niall - Original Message - From: Hubert Rabago [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 7:31 PM Subject: Re: Problem Dynamically creating form properties I meant to say I

RE: Problem Dynamically creating form properties

2004-02-18 Thread Marco Mistroni
Hi, In my case I still declare properties in Struts-config, so the validator still validates (as I have seen From the errors received :-) I was curious 'bout Guillermo approach coz I was trying To explore ways so that a change in parameters from Backend layers will lead to as small

RE: Problem Dynamically creating form properties

2004-02-18 Thread Marco Mistroni
Users Mailing List Subject: Re: Problem Dynamically creating form properties As long as we're sharing... =) I wrote a plug-in which defines my DynaActionForms based on my DTOs. So if I have an employee DTO, it will define a DynaActionForm for me with the fields from my employee DTO. It helps me

RE: Problem Dynamically creating form properties

2004-02-18 Thread Hubert Rabago
-Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 19:24 To: Struts Users Mailing List Subject: Re: Problem Dynamically creating form properties As long as we're sharing... =) I wrote a plug-in which defines my DynaActionForms based on my DTOs

Re: Problem Dynamically creating form properties

2004-02-18 Thread Michael McGrady
I would be interested int his, Niall. At 10:46 AM 2/17/2004, you wrote: I have a version of DynaBean based on the MutableDynaClass interface which allows properties to be added dynamically - which anyone would be free to use (I tried to attach here but struts-user rejected the mail saying we

Re: Problem Dynamically creating form properties

2004-02-18 Thread Niall Pemberton
properties I would be interested int his, Niall. At 10:46 AM 2/17/2004, you wrote: I have a version of DynaBean based on the MutableDynaClass interface which allows properties to be added dynamically - which anyone would be free to use (I tried to attach here but struts-user rejected the mail saying

Problem Dynamically creating form properties

2004-02-17 Thread Bernard Gaughran
with the correct number of properties 2. accessing these form fields in the action class. Normally, form property definitions need to be defined at compile time (whether you use Action Forms or DynaForms) Ideally, I'd like to use the struts framework to avail of Validator,etc,etc. Also, I would like to use

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
to be a holder of DynamicBean (somethind like this: ((DynamicForm)form).getModel() returns a DynamicBean with all properties.) So, we add html:text fields to the JSP and these are populated to this DynamicForm without the need of declaring this property anywhere. And we have optionall Contract asserter

RE: Problem Dynamically creating form properties

2004-02-17 Thread Paul-J Woodward
respond to Struts Users Mailing List To: 'Struts Users Mailing List' [EMAIL PROTECTED] cc: Subject:RE: Problem Dynamically creating form properties I previuosly posted a mail to this list asking why DynaForms are called Dynamic if you have to declare them

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
Mailing List Subject: RE: Problem Dynamically creating form properties That sounds excellent, is it available for use? Paul Global Equity Derivatives Technology Deutsche Bank

RE: Problem Dynamically creating form properties

2004-02-17 Thread Marco Mistroni
Hi Guillermo, I have one question: will 'your trick' work also if I have properties of type, for example, Short, or Integer, or java.sql.Date? Thanx and regards marco -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 12:43

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
DynamicBean can have it's properties typed: Example: DynamicBean db = DynamicBeanFactory.create(); db.setCalendar(date, Calendar.getInstance()); db.setLong(idXX, 123); db.setString(prop, Hello World); db.setObject(objPropName, new Object()); db.add(collectionPropName, Item1); //this creates

Re: Problem Dynamically creating form properties

2004-02-17 Thread Mark Lowe
Should java.sql.Date belong in an form bean? On 17 Feb 2004, at 16:15, Marco Mistroni wrote: Hi Guillermo, I have one question: will 'your trick' work also if I have properties of type, for example, Short, or Integer, or java.sql.Date? Thanx and regards marco -Original

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
) Persistence framework persists this object in the database. Regards. Guillermo. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Martes, 17 de Febrero de 2004 12:34 p.m. To: Struts Users Mailing List Subject: Re: Problem Dynamically creating form properties Should

Re: Problem Dynamically creating form properties

2004-02-17 Thread Mark Lowe
[mailto:[EMAIL PROTECTED] Sent: Martes, 17 de Febrero de 2004 12:34 p.m. To: Struts Users Mailing List Subject: Re: Problem Dynamically creating form properties Should java.sql.Date belong in an form bean? On 17 Feb 2004, at 16:15, Marco Mistroni wrote: Hi Guillermo, I have one question

RE: Problem Dynamically creating form properties

2004-02-17 Thread Marco Mistroni
properties stored in the DynaBean.. Regards marco -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 15:44 To: 'Struts Users Mailing List' Subject: RE: Problem Dynamically creating form properties Our DynamicBean holds java.util.Calendar

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
. To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Problem Dynamically creating form properties That sounds great (I hate write lot of set/get methods.. :-) )! One further enquiry: so the actual DynaBean TO PersistenceObject 'transformation' is done where the DynaBean is 'created

Re: Problem Dynamically creating form properties

2004-02-17 Thread Mark Lowe
'transformation' is done where the DynaBean is 'created' (persistence layer I guess)? Since as far as I understood that is the only place that knows about properties stored in the DynaBean.. Regards marco -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: 17

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
: Problem Dynamically creating form properties The cost of the getters and setters IMO usually don't outweigh the benefits of the validation framework, and having something in the middle of the form submission and the action. Before struts validator action forms provided a convenient place

Re: Problem Dynamically creating form properties

2004-02-17 Thread Niall Pemberton
I have a version of DynaBean based on the MutableDynaClass interface which allows properties to be added dynamically - which anyone would be free to use (I tried to attach here but struts-user rejected the mail saying we don't accept executable content ). We have also equivalent versions

Re: Problem Dynamically creating form properties

2004-02-17 Thread Hubert Rabago
allows properties to be added dynamically - which anyone would be free to use (I tried to attach here but struts-user rejected the mail saying we don't accept executable content ). We have also equivalent versions of the DynaValidatorForm and DynaValidatorActionForm based on this dynamic

Re: Problem Dynamically creating form properties

2004-02-17 Thread Hubert Rabago
. I'm finishing up unit tests and docs for it. - Hubert --- Niall Pemberton [EMAIL PROTECTED] wrote: I have a version of DynaBean based on the MutableDynaClass interface which allows properties to be added dynamically - which anyone would be free to use (I tried to attach here but struts

Re: Problem Dynamically creating form properties

2004-02-17 Thread Hubert Rabago
on the MutableDynaClass interface which allows properties to be added dynamically - which anyone would be free to use (I tried to attach here but struts-user rejected the mail saying we don't accept executable content ). We have also equivalent versions of the DynaValidatorForm

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
form properties I meant to say I wonder if we can combine what we have. --- Hubert Rabago [EMAIL PROTECTED] wrote: Niall, I wonder if we can what we have. I wonder what that would look like. Could be interesting. Hubert --- Hubert Rabago [EMAIL PROTECTED] wrote: As long as we're

Re: Problem Dynamically creating form properties

2004-02-17 Thread Mark Lowe
, 17 de Febrero de 2004 02:23 p.m. To: Struts Users Mailing List Subject: Re: Problem Dynamically creating form properties The cost of the getters and setters IMO usually don't outweigh the benefits of the validation framework, and having something in the middle of the form submission and the action

Re: Problem Dynamically creating form properties

2004-02-17 Thread Niall Pemberton
Your stuff sounds interesting and I'm up for a bit of collaboration. Niall - Original Message - From: Hubert Rabago [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 7:31 PM Subject: Re: Problem Dynamically creating form properties I

RE: Problem Dynamically creating form properties

2004-02-17 Thread Hubert Rabago
Febrero de 2004 04:31 p.m. To: Struts Users Mailing List Subject: Re: Problem Dynamically creating form properties I meant to say I wonder if we can combine what we have. --- Hubert Rabago [EMAIL PROTECTED] wrote: Niall, I wonder if we can what we have. I wonder what that would

Re: Problem Dynamically creating form properties

2004-02-17 Thread Hubert Rabago
PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 7:31 PM Subject: Re: Problem Dynamically creating form properties I meant to say I wonder if we can combine what we have. --- Hubert Rabago [EMAIL PROTECTED] wrote: Niall, I wonder if we

copyProperties different properties

2004-02-16 Thread Mailing List
Hi, We want to copy from one bean to another by using BeanUtils.copyProperties. There are some differences between the properties of these two beans. Is there any way that we can send, for example a HasMap, to this method (or similar method), and define the relation of properties of these beans

problem with indexed properties

2004-02-13 Thread Shyam A
were not retained. To work around that, I'm trying indexed properties, but it has not helped my cause, only added to my woes:( With indexed properties, I don't seem to get the values of the textfields in the form bean(I get a NullPointerException on form submission). Also, the values

RE: problem with indexed properties

2004-02-13 Thread shirishchandra.sakhare
to understand whats goign on... HTH. regards, Shirish -Original Message- From: Shyam A [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 4:04 PM To: Struts Users Mailing List Subject: problem with indexed properties Hello, I'm trying to use indexed propeties in my form bean (ActionForm

Re: Array of text fields generated dynamically - struggling with indexed properties

2004-02-12 Thread Shyam A
were not retained. To work around that, I'm trying indexed properties, but it has not helped my cause, only added to my woes:( With indexed properties, I don't seem to get the values of the textfields in the form bean(I get a NullPointerException on form submission). Also, the values

Trouble using nested iterate with mapped properties

2004-02-08 Thread Mike Cargal
OK, this isn't real easy to explain, but it's got me stumped at the moment. I am working on an application that will display hundreds of different beans. To cut down on there being hundreds of value beans, I have created a generic value bean that uses getters and setters like so: public String

Printing nested properties

2004-02-05 Thread Edgar Silva
folder structureHi Folks... I have a situation where I have this model: Customer - name : String - phone : String - addr1 : String: - addr2 : String - sales: Vector (of following classe) Sales - date: Date - paymentMethod: String - value: Double How can I present the properties from sales

Re: Printing nested properties

2004-02-05 Thread Edgar Silva
will be appreciated. regards Edgar Silva - Original Message - From: Edgar Silva [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, February 05, 2004 11:08 AM Subject: Printing nested properties folder structureHi Folks... I have a situation where I have

Displaying properties in a nested iterator

2004-02-04 Thread Michael Wiles
that there is a nested tag library, and I've tried to utilise this, but with no success. How do you successfully nest iterators and display properties in the nested iterator? I don't want to use a scriptlet. Read our disclaimer at: http://www.picknpay.co.za/email-disclaimer.htm If you don't have web

Re: Displaying properties in a nested iterator

2004-02-04 Thread Michael Wiles
=subElement property=orderNo/ I get a No getter method for property orderNoof bean subElement exception. I noticed that there is a nested tag library, and I've tried to utilise this, but with no success. How do you successfully nest iterators and display properties in the nested iterator? I

RE: Conventions for indexed properties

2004-02-03 Thread Yee, Richard K,,DMDCWEST
properties I Thought I'd reply to my own message with our solution to this issue. Feedback is most welcome. Here are the changes we made: 1) We have an indexed getter and setter exactly as per the JavaBean spec 2) A non-indexed List getter and setter as supported by BeanUtils 3) Using our own

How to set properties on actions?

2004-02-03 Thread Eric SCHULTZ
Good evening... i'm trying to use set-property on my action, in struts-config.xml i have: action path=/BillPayment type=com.elixonline.TECO.ivr.CustomerInformation.BillPayment set-property property=noTransferDays value=MONDAY/ /action and my class defines public void setNoTransferDays(String

Re: How to set properties on actions?

2004-02-03 Thread Joe Germuska
set-property refers to a property of the *action-mapping*, not the *action*. The class which needs to define noTransferDays should extend org.apache.struts.action.ActionMapping, and is specified in the XML using the className attribute (as opposed to type). Then in your Action, cast the

RE: Conventions for indexed properties

2004-02-02 Thread Sunil Dmonte
To: 'Struts Users Mailing List' Subject: RE: Conventions for indexed properties Thanks for the responses guys. Does that mean the following getter (given at http://jakarta.apache.org/struts/faqs/indexedprops.html) is incorrect? It doesn't seem to follow the javabean spec for indexed

How to retreive ApplicationResources properties ?

2004-01-22 Thread AMIR-TAHMASSEB Marc
Hi, i wonder to kno if its possible to access the ApplicationResources properties on another way than using a bean like : bean:message key=my.property/ A generate a part of code in a JSP class. and this code has to use some properties available in ApplicationResources. If i use bean:message

RES: How to retreive ApplicationResources properties ?

2004-01-22 Thread Tiago Henrique Costa Rodrigues Alves
You can use a work around way... take a look at: java.util.Properties Properties p = new Properties().load(InputStream inStream); /* The InputStream will be your ApplicationResources properties file. than you just need to get the properties you need... */ p.get(my.property) Tiago Henrique C. R

RE: How to retreive ApplicationResources properties ?

2004-01-22 Thread Daniel Lipofsky
-TAHMASSEB Marc [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 5:24 AM To: [EMAIL PROTECTED] Subject: How to retreive ApplicationResources properties ? Hi, i wonder to kno if its possible to access the ApplicationResources properties on another way than using a bean like

Conventions for indexed properties

2004-01-22 Thread Sunil Dmonte
Hi - could someone please point me to a definitive guide to get() and set() conventions for indexed properties in Struts? I've seen and tried plenty of variations; there doesn't seem to be one standard solution that works every time. E.g. for the property List books = new ArrayList(); // assume

Re: Conventions for indexed properties

2004-01-22 Thread John D. Hume
I don't have a definitive guide, but here are some examples that could be helpful. Here's a slice of the guts of a form with int indexed properties that works for me. The use of simple arrays is a serious shortcoming, but the interface works with the JSP below: public void reset

Re: Conventions for indexed properties

2004-01-22 Thread John D. Hume
Actually, this is the definitive guide: http://jakarta.apache.org/struts/faqs/indexedprops.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Conventions for indexed properties

2004-01-22 Thread Craig R. McClanahan
for indexed properties -- one that has the getter and setter methods taking an array, and one that has the getter and setter methods taking an additional argument for the index. There's lots of other useful info about what it means to be a JavaBean here as well. Just as one example, did you know

RE: Conventions for indexed properties

2004-01-22 Thread Sunil Dmonte
Thanks for the responses guys. Does that mean the following getter (given at http://jakarta.apache.org/struts/faqs/indexedprops.html) is incorrect? It doesn't seem to follow the javabean spec for indexed properties: public java.util.List getStringIndexed(int index) { return

ActionForm boolean properties - Newbie question

2004-01-20 Thread Renato Romano
I have some trouble using a boolean (the primitive type) property inside an ActionForm. What I'd like to know is if Struts looks for a getProperty method or isProperty method... It seems Struts always calls the getProperty, but as I know it should call the isProperty!! Is the behavior with a

RE: ActionForm boolean properties - Newbie question

2004-01-20 Thread Andrew Hill
properties - Newbie question I have some trouble using a boolean (the primitive type) property inside an ActionForm. What I'd like to know is if Struts looks for a getProperty method or isProperty method... It seems Struts always calls the getProperty, but as I know it should call the isProperty

Re: Using ArrayList instead of String[] properties

2004-01-13 Thread Mark Lowe
=${accountMap[accountForm.map.calendarYear]} var=account html-el:checkbox property=accounts indexed=true I lied, that doesn't work at all. It produces HTML like this: input type=checkbox name=org.apache.struts.taglib.html.BEAN[0].accounts value=on10_U_FADA0001 I read that indexed properties

RE: Using ArrayList instead of String[] properties

2004-01-13 Thread shankarr
=org.apache.struts.taglib.html.BEAN[0].accounts value=on10_U_FADA0001 I read that indexed properties only work with logic:iterate, so I'm trying to change over from logic:forEach. Can someone help me sort this out? This works to generate HTML, but BeanUtils can't populate the ArrayList that is the 'accounts

Re: Using ArrayList instead of String[] properties

2004-01-13 Thread Mark Lowe
I lied, that doesn't work at all. It produces HTML like this: input type=checkbox name=org.apache.struts.taglib.html.BEAN[0].accounts value=on10_U_FADA0001 I read that indexed properties only work with logic:iterate, so I'm trying to change over from logic:forEach. Can someone help me sort

RE: Using ArrayList instead of String[] properties

2004-01-13 Thread Robert Taylor
the accounts name. Struts will reset your form and them populate the accounts property of your form with the String array. Unless I've missed something, I don't see the need to using indexed properties here if the selected value is single String and order doesn't matter. robert -Original

RE: Using ArrayList instead of String[] properties

2004-01-13 Thread Wendy Smoak
From: Robert Taylor [mailto:[EMAIL PROTECTED] Unless I've missed something, I don't see the need to using indexed properties here if the selected value is single String and order doesn't matter. After much consideration, neither do I! I thought ArrayList would be easier to deal

Re: Using ArrayList instead of String[] properties

2004-01-13 Thread Mark Lowe
] Unless I've missed something, I don't see the need to using indexed properties here if the selected value is single String and order doesn't matter. After much consideration, neither do I! I thought ArrayList would be easier to deal with, but it turns out that String[] is the right type to use

RE: Using ArrayList instead of String[] properties

2004-01-13 Thread Wendy Smoak
From: Mark Lowe [mailto:[EMAIL PROTECTED] Using arrayList as a form property works fine with action forms dyna or otherwise. In fact IMO it makes like simpler. As i recall you were trying to iterate through a map of forms not an arraylist. The iterator goes through a Map, yes, but that

Re: Using ArrayList instead of String[] properties

2004-01-13 Thread Mark Lowe
fair enough .. i'm having a bad day with multiple, select menus and bean utils not dealing with life every well. java.lang.IllegalArgumentException: argument type mismatch bean utils seems to be complaining that the types in my form and those in the form bean are somehow different, i cant see

RE: Using ArrayList instead of String[] properties

2004-01-13 Thread Wendy Smoak
From: Mark Lowe [mailto:[EMAIL PROTECTED] It was working, until i rearranged a few things. A few questions/suggestions in help me problem solve would be greatly appreciated if you have the time. I also don't see why BeanUtils can't handle turning multiple request parameters with the same

RE: Using ArrayList instead of String[] properties

2004-01-13 Thread Kris Schneider
For a resizable list from an array, try: List stringList = new ArrayList(Arrays.asList(stringArray)); Quoting Wendy Smoak [EMAIL PROTECTED]: From: Mark Lowe [mailto:[EMAIL PROTECTED] It was working, until i rearranged a few things. A few questions/suggestions in help me problem solve

Re: Using ArrayList instead of String[] properties

2004-01-13 Thread Mark Lowe
The only issue with using arraylist as a form property is to scope to session so you can change the size when required. I tend to use them for nesting beans rather then just storing strings. My form parameters are in an arraylist. I just think beanUtils hates me or something rational like

RE: Using ArrayList instead of String[] properties

2004-01-13 Thread Michael McGrady
Hi, Wendy, Just do this or whatever is similar that you like. This is what I do. public class ArrayListWrapper extends ArrayList { private ArrayListWrapper(Object [] param) { for(int i = 0; i param.length; i++) { this.add(param[i]); } } public static ArrayList

[OT] Properties and Singleton

2004-01-12 Thread jay andrews
I have some configuration properties for my structs app that I am thinking of moving to properties and creating a singleton objects to hold this property values. Is there any reason not to to this with struts? does anyone know if there is an example of this somewhere? my recent search have been

RE: [OT] Properties and Singleton

2004-01-12 Thread Robert Taylor
You could simply store the loaded Properties object in the ServletContext where the same instance would be available to the entire web application thus acting as a singleton of sorts without necessarily implementing the pattern. robert -Original Message- From: jay andrews [mailto

RE: Using ArrayList instead of String[] properties

2004-01-12 Thread Wendy Smoak
HTML like this: input type=checkbox name=org.apache.struts.taglib.html.BEAN[0].accounts value=on10_U_FADA0001 I read that indexed properties only work with logic:iterate, so I'm trying to change over from logic:forEach. Can someone help me sort this out? This works to generate HTML

Using ArrayList instead of String[] properties

2004-01-09 Thread Wendy Smoak
I have a String[] property in a DynaValidatorForm. It works fine with multiple checkboxes and accepts multiple selections. Now I need to do an advanced user interface, where the user can enter the information in text boxes and click 'Add'. Behind the scenes I need to populate that String[]

Re: Using ArrayList instead of String[] properties

2004-01-09 Thread Mark Lowe
I think your multibox needs to be index=true or be a checkbox with index=true. On 9 Jan 2004, at 21:46, Wendy Smoak wrote: I have a String[] property in a DynaValidatorForm. It works fine with multiple checkboxes and accepts multiple selections. Now I need to do an advanced user interface,

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-09 Thread Caroline Jen
Robert, I followed your advices. Your code works very well. I have successfully inserted all the values of my bean properties into the database. Thank you very much. --- Robert Taylor [EMAIL PROTECTED] wrote: The same problem exists, you are calling getters on a ThreadBean instance which

  1   2   3   4   5   6   7   8   9   10   >