File: form.ftl

package info (click to toggle)
libfreemarker-java 2.3.13%2Bdebian1-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 4,296 kB
  • ctags: 5,458
  • sloc: java: 42,735; xml: 1,352; jsp: 28; makefile: 14; sh: 10; python: 10
file content (21 lines) | stat: -rw-r--r-- 550 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
<#import "/lib/common.ftl" as com>
<#global html=JspTaglibs["/WEB-INF/struts-html.tld"]>
<#escape x as x?html>

<@com.page title="Add Entry">
  <@html.errors/>
  
  <@html.form action="/add">
    <p>Your name:<br>
    <@html.text property="name" size="60"/>
    <p>Your e-mail (optional):<br>
    <@html.text property="email" size="60"/>
    <p>Message:<br>
    <@html.textarea property="message" rows="3" cols="60"/>
    <p><@html.submit value="Submit"/>
  </@html.form>
  
  <p><a href="index.do">Back to the index page</a>
</@com.page>

</#escape>