File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Type conversion with an array in Struts2

Jim Ward
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • 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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic