Hi Raaja,
I'm extremely sorry for the delay and thank you for the detailed response .So, according to what you say .
If I have a table in my jsp as below
<form name="test" action="TestServlet">
..
..
<display:table id="some name" name="MyTableContents" requestURI="TestServlet" pagesize="10" cellpadding="2" cellspacing="2">
</form>
and in the TestServlet, something like
List Contents=new Arraylist<>();
Bean B=new Bean();
Contents.add(B);
request.setAttribute("MyTableContents",Contents)
That is all I would need to do , right?
Once again , many thanks for helping out.
Regards.
Raaja G wrote:
Hi,
Then just give the action mentioned in the jsp form tag in the requestURI of display tag. In the calling servlet keep the collection object in request scope.
for ex:
if ur jsp is
<html><body>
<form action="someaction" method="post/get">
ur presentation code or jsp code
<display:table id="some name" name="your request scope object name" requestURI="/your action name in form tags action attribute" pagesize="10" cellpadding="2" cellspacing="2">
<display:column property="getter method name" title="column title" sortable="true" style="text-align:center;" />
</display:column>
<display:column title="Review" style="text-align:center;">
<html:multibox name="deptUsers" property="review" />
</display:column>
</display:table>
</form>
</body>
</html>
in service or post or get method
List al = new ArrayList();
Bean b = new Bean();
b.set....(....);
al.add(b);
request.setAttribute("your request scope object name",al);