Jim Ward

Greenhorn
+ Follow
since Mar 13, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jim Ward

I'm having a problem with type conversion. I'm using hidden fields in displaytag defined as

<s:hidden name="selectId[%{#attr.row_rowNum}]" value="%{#attr.row.assessmentId}" />

In my action I have

List selectId = new ArrayList();

If I look at the parameterMap I can see that I have parameters that look correct, (eg: selectId[1], 11225; selectId[2], 13466; etc.)
but if I iterate my list, I have field descriptors. (eg: [Ljava.lang.String;@dedc00 etc.)

Any help? Thanks
12 years ago
I'm fairly new to Struts 2 and I'm having an issue using the Struts2 checkbox. As I understand it from reading "Struts 2 in Action", I should be able to bind it to a boolean field, but I can't seem to make it work. It's a boolean field in a recordset I'm trying to display using either an iterator or displaytag, (for pagination). I seem to get conflicting info about whether I can bind it directly to the field or I have to return an arraylist like an HTML checkbox.

Thanks.
12 years ago