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)
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);
>
>
--
View this message in context:
http://old.nabble.com/DisplayTag-in-request-scope.-How--tp32036278p32183122.html
Sent from the DisplayTag - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user