Results 1 to 2 of 2
- 12-06-2011, 11:20 AM #1
Member
- Join Date
- Sep 2011
- Posts
- 8
- Rep Power
- 0
[Struts] How can I start iterating from 2 instead of 0 in my struts loop ?
Hi,
I would like to start my loop iterate from the number 2 and not 0.
Therefore i have realised in the class jsp with struts the following :
I got the following error with my jsp page :Java Code:<logic:iterate id="ListeFonc" name="LISTE_FONCTION_REQUEST" indexId="indexLF" > <% indexLF = indexLF + 2; %>
How can i start my loop from 2 instead of 0 ?D:\Dev\Eclipse\workspaceV02_7a_exploit\.metadata\. plugins\org.eclipse.wst.server.core\tmp0\work\Cata lina\localhost\mediweb-webapp\org\apache\jsp\jsp\corps\admin\Modification Utilisateur_jsp.java:1603: operator + cannot be applied to java.lang.Integer,int
indexLF = indexLF + 2;
Thanks
- 12-06-2011, 11:53 AM #2
Member
- Join Date
- Sep 2011
- Posts
- 8
- Rep Power
- 0
Re: [Struts] How can I start iterating from 2 instead of 0 in my struts loop ?
The solution is in the manual :
iterate (Struts Taglib Tag library documentation)
I just need to add the property offset="2" in iterate
Similar Threads
-
Struts 2 : Problem : ClassNotFoundException: org.apache.struts.action.ActionServlet
By Divyanshu in forum Web FrameworksReplies: 1Last Post: 12-06-2011, 03:30 PM -
Struts: How to display a grid in Struts??
By fabbero in forum New To JavaReplies: 1Last Post: 07-13-2011, 05:18 PM -
How to start with Struts
By blackpanther in forum New To JavaReplies: 0Last Post: 12-30-2010, 05:13 PM -
struts-config.xml in struts.
By arjun_duddu in forum Advanced JavaReplies: 0Last Post: 09-01-2010, 01:54 PM -
decorator.jsp problem building Struts Menu in JSP when Struts action is used
By dkirvan in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 04-29-2010, 05:33 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks