1

Is there a way to make <display:table> to make the table element values submit as input elements in my Struts 2 application using JSP's and the Display Tag library?

So, given ...

<form ... >
    <display:table uid="list"
       <display:column property="someProperty" title="title"/>
    </display:table>
</form>

... I want list.someProperty available on the Value Stack after a form submit.

Is that possible?

Thanks!

Nick
  • 190
  • 1
  • 2
  • 15

1 Answers1

2

From the documentation of display tag columns, you need to remove the property attribute and give the column a body and you can put whatever you want in there.

<form ... >
    <display:table uid="list"
       <display:column title="title">
           <input ...>...</input>
       </display:column>
    </display:table>
</form>
krock
  • 28,904
  • 13
  • 79
  • 85