The value of the C:foreach varstatus in the JSP page: It's a pit, a long pose __js

Source: Internet
Author: User

First the length of the code type is 2,attr 4:

Where the type id=1 has three properties

Type=2 has a property


<c:foreach items= "${typelist}" var= "type" varstatus= "index" > <tr> <th width= "15%" & GT; classification information </th> <th>${type.typename} <input type= "hidden" name= "Type${index.index}" value= "${TYPE.I" D} "/> </th> </tr> <c:if test=" ${fn:length (addattrlist) ==0} "> <c:foreach items=" ${a Ttrlist} "var=" attr "varstatus=" seq "> <c:if test=" ${type.id = = Attr.type} "> <tr> <TD&G 
								T;${attr.name} <input type= "hidden" name= "Attr${index.index}${seq.index}" value= "${attr.id}"/> <input type= "hidden" name= "Name${index.index}${seq.index}" value= "${attr.name}"/> </td> < td> <input type= "text" id= "Value${index.index}${seq.index}" Name= "Value${index.index}${seq.index}" value
			= "" "class=" required "title=" Please enter attribute value "/> </td> </tr> </c:if> </c:forEach> </c:if> 

It's a simple loop, a loop, Why 13 instead of 10 ....



That is to say that SEQ started at the beginning of the second cycle not from 0 ...



I'm going, it's too bad. With the usual for the loop so much worse ... Keng




Well, it's a posture rise today ...

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.