File: Extensability.jsp

package info (click to toggle)
glassfish 1%3A2.1.1-b31-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 137,420 kB
  • ctags: 168,594
  • sloc: java: 1,051,703; xml: 48,451; jsp: 4,967; ansic: 1,442; perl: 1,200; sh: 562; makefile: 340; cpp: 336; sql: 78; haskell: 76; awk: 69; ruby: 58; sed: 21; lisp: 5
file content (45 lines) | stat: -rw-r--r-- 1,473 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ex" uri="/jstl-examples-taglib" %>


<c:set var="first"><c:out value="${param['first']}" default="1"/></c:set>
<c:set var="pageSize"><c:out value="${param['pageSize']}" default="30"/></c:set>
<c:set var="last" value="${first+pageSize-1}"/>

<c:if test="${first != 1}">
   <c:url var="prevURL" value="Extensability.jsp">
      <c:param name="first" value="${first - pageSize}"/>
   </c:url>
</c:if>

<c:url var="nextURL" value="Extensability.jsp">
      <c:param name="first" value="${last+1}"/>
</c:url>

<table><tr><th>#</th></th><th>Code</th><th colspan="2" align="left">Name</th></tr>
<ex:locales var="locale" varStatus="status" varTotal="total" begin="${first}" end="${last}">
   <tr>
      <td><c:out value="${status.index}"/></td>
      <td><c:out value="${locale}"/></td>
      <td><c:out value="${locale.displayName}"/></td>
      <td><ex:defaultLocale><b>(default locale)</b></ex:defaultLocale></td>
   </tr>
</ex:locales>
</table>

<c:if test="${last > total}">
   <c:set var="last" value="${total}"/>
   <c:remove var="nextURL"/>
</c:if>

<br>
Showing locales <c:out value="${first}"/> to <c:out value="${last}"/> of <c:out value="${total}"/><br>
<br>
<c:if test="${not empty prevURL}">
<a href="<c:out value="${prevURL}"/>">previous</a>&nbsp;&nbsp;&nbsp;
</c:if>
<c:if test="${not empty nextURL}">
<a href="<c:out value="${nextURL}"/>">next</a>&nbsp;&nbsp;&nbsp;
</c:if>
<br>