Yeah, the code works. Even when it was a Boolean inside the Vector @StrutsParameter had to be used on getXXX method. So I assume that irrespective of the object type inside the Vector we have to
annotate the getXXX method for Vectors.
Thanks,
Prasanth
On 9/25/25 11:59 AM, Dave Newton wrote
On Thu, Sep 25, 2025 at 11:24 Prasanth wrote:
> public Vector getDistributionAmounts()
…
> public void setContacts(ArrayList contacts)
>
> As you can see above which method (getXXX/setXXX) has to be annotated is
> changing between Vector and ArrayList.
It also changes the generic type; did it
In the below code the get method is annotated with @StrutsParameter. This works.
@StrutsParameter (depth = 1)
public Vector getDistributionAmounts() {
return this.distributionAmounts;
}
Here the set method is annotated with @StrutsParameter.
@StrutsParameter
public
czw., 21 sie 2025 o 19:18 Prasanth napisał(a):
> Is the struts parameter tag supposed to be on setXXX method or getXXX method
> for a check box list when the argument is Vector/ArrayList?. We have old code
> that takes the data as a vector, for this we
> have the parameter on the getXXX and it w
Hi,
Is the struts parameter tag supposed to be on setXXX method or getXXX method for a check box list when the argument is Vector/ArrayList?. We have old code that takes the data as a vector, for this we
have the parameter on the getXXX and it works well. For another action that has ArrayList as
5 matches
Mail list logo