File: examples.vm

package info (click to toggle)
velocity-tools 2.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,952 kB
  • sloc: java: 24,414; xml: 7,944; jsp: 459; makefile: 24
file content (121 lines) | stat: -rw-r--r-- 5,646 bytes parent folder | download | duplicates (7)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
## Licensed to the Apache Software Foundation (ASF) under one
## or more contributor license agreements.  See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership.  The ASF licenses this file
## to you under the Apache License, Version 2.0 (the
## "License"); you may not use this file except in compliance
## with the License.  You may obtain a copy of the License at
##
##   http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing,
## software distributed under the License is distributed on an
## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
## KIND, either express or implied.  See the License for the
## specific language governing permissions and limitations
## under the License.

<HTML>
<HEAD>
  <TITLE>VelocityStruts $version</TITLE>
  <link rel="stylesheet" href="$link.relative('styles.css')" type="text/css">
</HEAD>

<BODY>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr bgcolor="#000066">
    <td>
      <h2><font color="#FFFFFF"><br>
				Velocity for Struts 1.3.x</font></h2>
    </td>
  </tr>
</table>

<div><a href="$link.action.index"><font color="#000000">Home</font></a> <font color="#000000">&gt; Examples</font></div>


<h5><b>Examples</b></h5>
<ul>
	<li><b>Struts App1: Address Editor</b><br>
		This application is a very simple address editor. It consists of two dynamic
		pages, one ActionForm, one Action class and an AddressBean. Address information
		is gathered through a form and associated with a HTTP session. This information
		can be displayed and modified. It demonstrates how the Struts control framework
		can be used independently of a specific view technology. JSP and Velocity
		templates can be mixed and matched within the same application. The support
		for multiple languages demonstrates how Struts resources may be accessed from
		within templates.
		<ul>
			<li><a href="$link.forward.app1" target="demo">Velocity Version</a></li>
			<li><a href="$link.forward.app1Jsp" target="demo">JSP Version</a></li>
		</ul>
		<p>&nbsp;</p>
	</li>
	<li><b>Struts App2: Struts View Tools Demo</b><br>
		This application demonstrates the Velocity view tools for Struts. These view
		tool enable view designers to access the resources of the Struts framework. Their
		functionality is a subset of the functionality provided by the Struts custom tag
		libraries for JSP.
		<ul>
			<li><a href="$link.forward.app2" target="demo">Struts View Tools Demo</a>
				(<a href="$link.forward.app2Src" target="demo">template</a>)</li>
		</ul>
		<p>&nbsp;</p>
	</li>
	<li><b><i></i> Struts App3: Struts Logon Example</b><br>
		This is the well known Struts logon example application by Ted Husted. Here
		it is implemented in both JSP and Velocity versions.
		<ul>
			<li><a href="$link.forward.app3" target="demo">Velocity Version</a></li>
			<li><a href="$link.forward.app3Jsp" target="demo">JSP Version</a></li>
		</ul>
		<p>&nbsp;</p>
	</li>
        <li><b><i></i> Struts App4: Struts Tiles Example</b><br>
		This application demonstrates the Velocity TilesTool for Struts.  It's functionality is a subset
                of the functionality provided by the Struts Tiles tag library for JSP.
		<ul>
			<li><a href="$link.forward.app4" target="demo">Velocity Version</a></li>
			<li><a href="$link.forward.app4Jsp" target="demo">JSP Version</a></li>
                        <li><a href="$link.forward.app4Mixed" target="demo">Mixed Version</a></li>
		</ul>
		<p>&nbsp;</p>
	</li>
        <li><b><i></i> Struts App5: Struts Validator Example</b><br>
		This application demonstrates the Velocity ValidatorTool for Struts.  It's functionality is a subset
                of the functionality provided by the Struts HTML tag library for JSP.
		<ul>
			<li><a href="$link.forward.app5" target="demo">Velocity Version</a></li>
			<li><a href="$link.forward.app5Jsp" target="demo">JSP Version</a></li>
		</ul>
		<p>&nbsp;</p>
	</li>
        <li><b><i></i> Struts App6: Struts SSL Ext. Example</b><br>
		This application demonstrates the SecureLinkTool for Struts.  It's functionality is a subset
    of the functionality provided by the SSL Ext. tag library for JSP. <br/>
    SSL Ext. is a very useful extension to the Struts framework that enables you to declare actions
    secure, non-secure or neutral in the struts-config.  For more information see the project's
    <a href="http://sslext.sourceforge.net">homepage</a>.  This example app is a stripped down version
    of the demo that comes with the SSL Ext. package.<br/>
    In order to try out this example app you have to have SSL set up and enabled on your web server.
    The test app defaults to ports 8080 for http and 8443 for https - if you use other ports for these
    protocols you need to change the settings in the app's struts-config.
		<ul>
			<li><a href="$link.forward.app6" target="demo">Velocity Version</a></li>
			<li><a href="$link.forward.app6Jsp" target="demo">JSP Version</a></li>
		</ul>
		<p>&nbsp;</p>
	</li>
        <li><b><i></i> Struts App7: Struts Tiles + SSL Ext. Example</b><br>
		This application is the same as app 6 except for the struts-config and the added tiles-config.  It
                shows how to use Tiles and SSL Ext. together in the same application.
		<ul>
			<li><a href="$link.forward.app7" target="demo">Velocity Version</a></li>
			<li><a href="$link.forward.app7Jsp" target="demo">JSP Version</a></li>
		</ul>
		<p>&nbsp;</p>
	</li>
</ul>

</BODY>
</HTML>