~ubuntu-branches/ubuntu/trusty/libstruts1.2-java/trusty-proposed

« back to all changes in this revision

Viewing changes to web/examples/exercise/bean-parameter.jsp

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2004-11-19 15:35:25 UTC
  • Revision ID: james.westby@ubuntu.com-20041119153525-mdu08a76z4zo67xt
Tags: upstream-1.2.4
ImportĀ upstreamĀ versionĀ 1.2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
 
2
<html>
 
3
  <head>
 
4
    <title>Test struts-bean:parameter Tag</title>
 
5
  </head>
 
6
  <body>
 
7
    <div align="center">
 
8
      <h1>Test struts-bean:parameter Tag</h1>
 
9
    </div>
 
10
    <p>If called from the 
 
11
    <code>index.html</code>page, two request parameters will be included and their values displayed below. If you call this page without including the appropriate request parameters, you will receive a JSP runtime error instead.</p>
 
12
    <bean:parameter id="param1" name="param1" />
 
13
    <bean:parameter id="param2" name="param2" />
 
14
    <bean:parameter id="param3" name="param3" value="UNKNOWN VALUE" />
 
15
    <table border="1">
 
16
      <tr>
 
17
        <th>Parameter Name</th>
 
18
        <th>Correct Value</th>
 
19
        <th>Test Result</th>
 
20
      </tr>
 
21
      <tr>
 
22
        <td>param1</td>
 
23
        <td>value1</td>
 
24
        <td>
 
25
          <%= param1 %>
 
26
        </td>
 
27
      </tr>
 
28
      <tr>
 
29
        <td>param2</td>
 
30
        <td>value2</td>
 
31
        <td>
 
32
          <%= param2 %>
 
33
        </td>
 
34
      </tr>
 
35
      <tr>
 
36
        <td>param3</td>
 
37
        <td>UNKNOWN VALUE</td>
 
38
        <td>
 
39
          <%= param3 %>
 
40
        </td>
 
41
      </tr>
 
42
    </table>
 
43
  </body>
 
44
</html>