~ubuntu-branches/ubuntu/lucid/libstruts1.2-java/lucid

« back to all changes in this revision

Viewing changes to contrib/struts-el/target/exercise-taglib/logic-redirect.jsp

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2006-04-24 12:14:23 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060424121423-naev53qigqgks0sa
Tags: 1.2.9-1
New upstream  release Fixes  three security  problems: CVE-2006-1546,
CVE-2006-1547,  CVE-2006-1548  (closes:  #360551),  thanks  to  Moritz
Muehlenhoff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
 
<%@ page language="java" %>
3
 
<%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el"  %>
4
 
<%@ taglib uri="/WEB-INF/struts-bean-el.tld"  prefix="bean-el" %>
5
 
<%@ taglib uri="/WEB-INF/struts-logic-el.tld"  prefix="logic-el"  %>
6
 
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
7
 
<c:if test='${not empty param["redirectType"]}'>
8
 
 <c:choose>
9
 
  <c:when test='${param["redirectType"] eq "forward"}'>
10
 
   <logic-el:redirect forward='${param["param1"]}'
11
 
                      transaction="${!empty pageScope}"/>
12
 
  </c:when>
13
 
  <c:when test='${param["redirectType"] eq "href"}'>
14
 
   <logic-el:redirect href='${param["param1"]}'/>
15
 
  </c:when>
16
 
  <c:when test='${param["redirectType"] eq "page"}'>
17
 
   <logic-el:redirect page='${param["param1"]}'/>
18
 
  </c:when>
19
 
 </c:choose>
20
 
</c:if>
21
 
<html-el:html>
22
 
 <head>
23
 
  <title>Test Struts &lt;logic:redirect&gt; tag</title>
24
 
 </head>
25
 
 <body>
26
 
  <div align="center">
27
 
   <h1>Test Struts &lt;logic:redirect&gt; tag</h1>
28
 
  </div>
29
 
  <table>
30
 
   <tr>
31
 
    <td>
32
 
     Redirect with <html-el:link forward="redirectForward">Forward</html-el:link>
33
 
    </td>
34
 
   </tr>
35
 
   <tr>
36
 
    <td>
37
 
     Redirect with <html-el:link forward="redirectHref">Href</html-el:link>
38
 
    </td>
39
 
   </tr>
40
 
   <tr>
41
 
    <td>
42
 
     Redirect with <html-el:link forward="redirectPage">Page</html-el:link>
43
 
    </td>
44
 
   </tr>
45
 
  </table>
46
 
 </body>
47
 
</html-el:html>