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-
>
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
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
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
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
/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
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
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.
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
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
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
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| + ")";|
%
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
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:
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
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
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
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
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
-
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.
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
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:
[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
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
24 matches
Mail list logo