JSP: Utilisation des Boucles dans un Page jsp

Author:
       
<%--
  Copyright (c) 2002 by Phil Hanna
  All rights reserved.
  
  You may study, use, modify, and distribute this
  software for any purpose provided that this
  copyright notice appears in all copies.
  
  This software is provided without warranty
  either expressed or implied.
--%>
<%!
   static final String[] COLORS = {
      "#CA9A26",
      "#3BF428",
      "#F7E339",
      "#FF40FF",
   };
%>
<%
   for (int i = 0; i < COLORS.length; i++) {
      String color = COLORS[i];
%>
;
            font-size: 12pt;
            font-weight: bold;">
   This is color <%= color %>
<% } %>                    

A Voir sur le même Sujet:

  • faire boucle dans page jsp
  • realiser un filtre sur un jcombobox en java

Leave a Reply

Your email address will not be published. Required fields are marked *