• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Type conversion with an array in Struts2

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic