Discussions
Web tier: servlets, JSP, Web frameworks: how do i set end value dynamically in c:forEach loop
-
how do i set end value dynamically in c:forEach loop (2 messages)
- Posted by: thanray Raj
- Posted on: September 19 2006 11:47 EDT
Im using Struts as frame work. On action side i set the attribute "totalSize" (by request.setAttribute method) request.setAttribute("tottalSize", catList); now on the jsp page i tried this: and tried to do an foor loop But i get error that the tottalSize is not resolved.. I want to set endValue in the action and want to read on the jsp. page. How do i do it? please help..Threaded Messages (2)
- Re: how do i set end value dynamically in c:forEach loop by Duncan Mills on September 20 2006 17:16 EDT
- Re: how do i set end value dynamically in c:forEach loop by Akash Sharma on September 22 2006 04:06 EDT
-
Re: how do i set end value dynamically in c:forEach loop[ Go to top ]
- Posted by: Duncan Mills
- Posted on: September 20 2006 17:16 EDT
- in response to thanray Raj
Usually you just give forEach the collection in it's items attribute and it naturally iterates through all the members. No need to explicitly set a start and end. -
Re: how do i set end value dynamically in c:forEach loop[ Go to top ]
- Posted by: Akash Sharma
- Posted on: September 22 2006 04:06 EDT
- in response to thanray Raj
Don't use ''