ASF Bugzilla – Attachment 22282 Details for
Bug 45433
Unstandard <size>-Tag doesn't accept arrays
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Sample jsp with <size>-Tag
testSize.jsp (text/plain), 1.79 KB, created by
Oleksiy Drugobytskyy
on 2008-07-18 06:08:59 UTC
(
hide
)
Description:
Sample jsp with <size>-Tag
Filename:
MIME Type:
Creator:
Oleksiy Drugobytskyy
Created:
2008-07-18 06:08:59 UTC
Size:
1.79 KB
patch
obsolete
><?xml version="1.0" encoding="ISO-8859-1" ?> ><%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> ><%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> ><%@ taglib prefix="un" uri="http://jakarta.apache.org/taglibs/unstandard-1.0" %> > ><% >java.util.ArrayList arrayList = new java.util.ArrayList(5); >arrayList.add("1"); >arrayList.add("2"); >arrayList.add("3"); >arrayList.add("4"); >arrayList.add("5"); >pageContext.setAttribute("collection", arrayList); > >java.util.TreeMap map = new java.util.TreeMap(); >map.put("1","1"); >map.put("2","2"); >map.put("3","3"); >map.put("4","4"); >map.put("5","5"); >pageContext.setAttribute("map", map); > >pageContext.setAttribute("string", "string"); > >pageContext.setAttribute("array", new int[] {1,2,3,4,5}); >%> ><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ><html xmlns="http://www.w3.org/1999/xhtml"> ><head> ><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> ><meta name="GENERATOR" content="IBM Software Development Platform" /> ><title>testSize.jsp</title> ></head> ><body> ><un:size var="size" target="${collection}"/> ><p>Collection: [<c:forEach items="${collection}" var="element"><c:out value="${element}"/> </c:forEach>], size: <c:out value="${size}"/> ><un:size var="size" target="${map}"/> ><p>Map: [<c:forEach items="${map}" var="element"><c:out value="${element.value}"/> </c:forEach>], size: <c:out value="${size}"/> ><un:size var="size" target="${string}"/> ><p>String: "<c:out value="${string}"/>", size: <c:out value="${size}"/></p> ><un:size var="size" target="${array}"/> ><p>Array: [<c:forEach items="${array}" var="element"><c:out value="${element}"/> </c:forEach>], size: <c:out value="${size}"/> ></body> ></html>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 45433
: 22282