File: html-img.jsp

package info (click to toggle)
libstruts1.2-java 1.2.9-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 47,516 kB
  • ctags: 29,430
  • sloc: xml: 90,344; java: 71,078; jsp: 31,692; makefile: 10; sh: 2
file content (52 lines) | stat: -rw-r--r-- 1,085 bytes parent folder | download | duplicates (6)
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
46
47
48
49
50
51
52
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<html>
  <head>
    <title>Test struts-html:img Tag</title>
  </head>
  <body>
    <div align="center">
      <h1>Test struts-html:img Tag</h1>
    </div>

    <table border="1" cellspacing="2" cellpadding="4" align="center">
    <tr>
    <td>
    Standard img tag
    </td>
    <td>
    <img src="struts-power.gif">
    </td>
    </tr>
    <td>
    Struts img tag via page attribute
    </td>
    <td>
    <html:img page="/struts-power.gif" />
    </td>
    </tr>
    <tr>
    <td>
    Struts img tag via action attribute
    </td>
    <td>
    <html:img action="/html-img-action" />
    </td>
    </tr>
    <tr>
    <td>
    Struts img tag via page attribute, context relative
    </td>
    <td>
    <html:img page="/exercise/struts-power.gif" contextRelative="true"/>
    </td>
    </tr>
    <tr>
    <td>
    Struts img tag via page attribute, default module
    </td>
    <td>
    <html:img page="/exercise/struts-power.gif" module="/"/>
    </td>
    </tr>
  </body>
</html>