Re: @StrutsParameter

Ute Kaiser <[email protected]> Thu, 25 Sep 2025 21:24:38 +0200
Newsgroups gmane.comp.jakarta.struts.user
Message-ID <[email protected]>
I would also appreciate some more information on this.
I use annotated public declarations on Strings, int, long without explicit g=
etter/setter, but for objects I spread around with annotations on both gette=
r and setter since I have not found out yet which is the right one to annota=
te for different scenarios.
For displaying, it seems ok to use public declarations on everything,
but when save with validations is needed, I struggle with lost values and =E2=
=80=9Eno access=E2=80=9C errors
Best regards Ute

Von meinem iPad gesendet

> Am 25.09.2025 um 19:09 schrieb Prasanth <[email protected]>:
>=20
> =EF=BB=BFYeah, the code works. Even when it was a Boolean inside the Vecto=
r @StrutsParameter had to be used on getXXX method. So I assume that irrespe=
ctive of the object type inside the Vector we have to annotate the getXXX me=
thod for Vectors.
>=20
> Thanks,
> Prasanth
>=20
>> On 9/25/25 11:59 AM, Dave Newton wrote:
>>> On Thu, Sep 25, 2025 at 11:24 Prasanth <[email protected]> wrote=
:
>>>=20
>>> public Vector<String> getDistributionAmounts()
>> =E2=80=A6
>>=20
>>> public void setContacts(ArrayList<Long> contacts)
>>>=20
>>> As you can see above which method (getXXX/setXXX) has to be annotated is=

>>> changing between Vector and ArrayList.
>>=20
>> It also changes the generic type; did it work with strings?
>>=20
>> d
>>=20
>=20
>=20
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>=20