Re: Map backed form

2019-03-07 Thread Prasanth
the collection property in your action or >>> object) >>> >>> Regards. >>> >>> [1] >>> https://struts.apache.org/core-developers/type-conversion.html#collection-and-map-support >>> >>>> -Original Message- >

Re: Map backed form

2019-03-07 Thread Yasser Zamani
ion property in your action or >> object) >> >> Regards. >> >> [1] >> https://struts.apache.org/core-developers/type-conversion.html#collection-and-map-support >> >>> -Original Message- >>> From: Prasanth >>> Sent: Friday, F

Re: Map backed form

2019-03-06 Thread Prasanth
nversion.html#collection-and-map-support > >> -Original Message- >> From: Prasanth >> Sent: Friday, February 15, 2019 9:08 PM >> To: user@struts.apache.org >> Subject: Re: Map backed form >> >> Does struts follow a specific logic as to what the

Re: Map backed form

2019-02-18 Thread Prasanth
ry 15, 2019 9:08 PM >> To: user@struts.apache.org >> Subject: Re: Map backed form >> >> Does struts follow a specific logic as to what the data type of the object >> would be >> based on user input? Meaning when is it converted to a Double vs Integer vs >> S

Re: Map backed form

2019-02-17 Thread Lukasz Lenart
sob., 16 lut 2019 o 10:28 Yasser Zamani napisał(a): > > I think a file named yourActionClass-conversion.properties beside your action > with following contents should help [1]: > > Key_xxx=java.lang.Long > Element_xxx=java.lang.Double > > (where xxx is the field name of the collection property in

RE: Map backed form

2019-02-16 Thread Yasser Zamani
/core-developers/type-conversion.html#collection-and-map-support >-Original Message- >From: Prasanth >Sent: Friday, February 15, 2019 9:08 PM >To: user@struts.apache.org >Subject: Re: Map backed form > >Does struts follow a specific logic as to what the data type of

Re: Map backed form

2019-02-15 Thread Prasanth
Does struts follow a specific logic as to what the data type of the object would be based on user input? Meaning when is it converted to a Double vs Integer vs String? Thanks, Prasanth On 2/15/19 7:45 AM, Lukasz Lenart wrote: > pt., 15 lut 2019 o 00:17 Prasanth napisał(a): >> I have a map (Map

Re: Map backed form

2019-02-15 Thread Lukasz Lenart
pt., 15 lut 2019 o 00:17 Prasanth napisał(a): > I have a map (Map) but based on the data entered by the user > the value in the Map is Double or String. Example if the user enters a value > of 10 then it is coming in as double but if the > user enters 10.5 then a string is present in the value.

Map backed form

2019-02-14 Thread Prasanth
Hi, I have a map (Map) but based on the data entered by the user the value in the Map is Double or String. Example if the user enters a value of 10 then it is coming in as double but if the user enters 10.5 then a string is present in the value. Does Struts2 look at the data types of the key an

[S2] How to use a Map backed form?

2006-12-25 Thread Eric Rank
Hi all Using Map backed forms in Struts 1 was really great. I'm wondering how it works in Struts 2. Looking at the Type Conversion docs (http:// struts.apache.org/2.x/docs/type-conversion.html#TypeConversion- CollectionandMapSupport) seem to get close to explaining it, but jumps right into

Re: dynamic html:text property with map-backed form

2004-11-10 Thread Emmanouil Batsis
Emmanouil Batsis wrote: But my output is What am i missing? Let me rephrase that; can i output "foo1" as the name attribute in the resulting HTML? Thanks, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

dynamic html:text property with map-backed form

2004-11-10 Thread Emmanouil Batsis
My map-backed form has keys like "index1", "index2"..."indexN" and i'm trying to out put hits by iterating like (according to the docos): <% |String name = "value(foo" + |rId| + ")";| %

Re: Map-backed form property and multi-select

2004-11-04 Thread Salvador Morant
Not if it will be useful to you but when I generate dynamic forms I do the following thing: The form definition: ... And then The select: If option is selected String[] contains the Value else contains null. The String[] size is the select options size. I hope to

Map-backed form property and multi-select

2004-11-04 Thread Radu Badita
Hi, I'm using a map-backed property to get the data from a run-time generated form. If one of the controls in the form is a multi-select, I only get the first selected option. The form definition: ... Setter method: public void setParamValue(String paramId, Object value) The select:

Re: Map Backed Form and JavaScript

2004-10-25 Thread Jeff Beal
document.forms[0]['dto(name)'].value Hariharan V wrote: Hi, I am making use of Map backed Action form Lets say I have named the textbox field as follows How can I access the text field value from JavaScript for instance I can't do something like this. document.forms[0].dto(name).value; (but th

Map Backed Form and JavaScript

2004-10-25 Thread Hariharan V
Hi, I am making use of Map backed Action form Lets say I have named the textbox field as follows How can I access the text field value from JavaScript for instance I can't do something like this. document.forms[0].dto(name).value; (but this will give a JS error) any workaround or can we use

multiselect with a map-backed form property

2004-08-16 Thread Adam Murray
I have a form with a dynamically generated list of constraints that can be turned on or off, and each constraint has a set of values associated with it. My form has two relevant fields: private String[] selectedConstraints; private Map values; public String[] getSelectedConstraints() { return

Map backed form with list of String Arrays

2004-05-04 Thread Richard Mixon (qwest)
I am having a problem with a map-backed form and html:select with multiple="true". Would appreciate any help/ideas. I need to display a set of "html:select" lists. The number of lists is user-defined (based on database data) and each select list must allow more than one c

RE: DynaAction or Map Backed Form?

2004-04-08 Thread Amin Lalji
ROTECTED] Sent: Wednesday, April 07, 2004 5:03 PM To: Struts Users Mailing List Subject: RE: DynaAction or Map Backed Form? Im not sure how to do it with the iterate tag, I use the c:forEach tag in the jstl taglib. It goes something like this: Assume service is a bean with acc

RE: DynaAction or Map Backed Form?

2004-04-07 Thread Ray Madigan
- From: Amin Lalji [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 1:26 PM To: 'Struts Users Mailing List' Subject: RE: DynaAction or Map Backed Form? Here is the Data structure: I have two tables (Services, Documents) I hit the database and pull two separate Collections.

RE: DynaAction or Map Backed Form?

2004-04-07 Thread Amin Lalji
ent: Wednesday, April 07, 2004 3:09 PM To: Struts Users Mailing List Subject: RE: DynaAction or Map Backed Form? It isn't clear what you have to work with. Is services a map of some sort, or is it a collection. Either way you should use the iterate tag in the logic tag set. If you could

RE: DynaAction or Map Backed Form?

2004-04-07 Thread Ray Madigan
ailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 12:39 PM To: 'Struts Users Mailing List' Subject: RE: DynaAction or Map Backed Form? Sorry... to add... Each Service may have a unknown set of documents... E.g. Services: 001 Catering 002 Party Documents:

RE: DynaAction or Map Backed Form?

2004-04-07 Thread Amin Lalji
[mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 2:28 PM To: 'Struts Users Mailing List' Subject: DynaAction or Map Backed Form? Hello All, I have the following scenario: I need to populate a form using a runtime generated set of form properties... Essentially

DynaAction or Map Backed Form?

2004-04-07 Thread Amin Lalji
Hello All, I have the following scenario: I need to populate a form using a runtime generated set of form properties... Essentially I have two collections I pull from a database Services (serviceID,serviceName) Documents (documentID,documentName) I want to populate a set of che