head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2001.06.12.17.04.47;	author jefflove;	state Exp;
branches;
next	1.1;

1.1
date	2001.05.23.02.03.16;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.2
log
@html usage/syntax revision
@
text
@<html>
 <head>
  <title>Hello!</title>
 </head>

 <body>
#set( $Response.ContentType = "text/html" )

  <h1>Hello!</h1>

  <p>$hello and $Form.other</p>

  <p>If you have "var=whatever" in the query string of your URL, the value of whatever should appear here: $Form.var</p>

  <p>Today is $Today</p>

  <p>Number is $Number</p>

  <p>Here is a list of your stuff (in the "stuff" form variable)</p>

  <ul>
   <li class="c1">#if( $FormList.stuff ) #foreach( $thing in $FormList.stuff )</li>

   <li>$thing #end #end</li>
  </ul>

  <p>Here is a list of your colors (in the "color" form variable)</p>

  <ul>
   <li class="c1">#if( $FormList.color ) #foreach( $thing in $FormList.color )</li>

   <li>$thing #end #end</li>
  </ul>
  <hr />

  <form action="TestWM" method="GET">
   other: <input type="text" name="other" value="" /><br />
   var: <input type="text" name="var" value="" /><br />
   apple: <input type="checkbox" name="stuff" value="apple" /><br />
   banana: <input type="checkbox" name="stuff" value="banana" /><br />
   cherry: <input type="checkbox" name="stuff" value="cherry" /><br />
    Select colors: <select multiple="multiple" size="3" name="color">
    <option name="red">
     red
    </option>

    <option name="blue">
     blue
    </option>

    <option name="green">
     green
    </option>
   </select><br />
   <input type="submit" name="submit" value="try it" /><br />
  </form>
 </body>
</html>


@


1.1
log
@Adding Velocity templates.
@
text
@d1 6
a6 1
<html><head><title>Hello!</title></head>
d9 52
a60 47
<body>
<h1><font color="red">Hello!</font></h1>
$hello and $Form.other
<p>
If you have "var=whatever" in the query string of your URL, the value of
whatever should appear here: $Form.var
<p>
Today is $Today 
<p>
Number is $Number 

<p>
Here is a list of your stuff (in the "stuff" form variable)
<ul>
#if( $FormList.stuff )
   #foreach( $thing in $FormList.stuff )
      <li>$thing
   #end
#end
</ul>
<p>
Here is a list of your colors (in the "color" form variable)
<ul>
#if( $FormList.color )
   #foreach( $thing in $FormList.color )
      <li>$thing
   #end
#end
</ul>
<hr>
<form action="TestWM" method="GET">
other: <input type=text name=other value=""> <br>
var: <input type=text name=var value=""> <br>
apple: <input type=checkbox name=stuff value="apple"> <br>
banana: <input type=checkbox name=stuff value="banana"> <br>
cherry: <input type=checkbox name=stuff value="cherry"> <br>

Select colors:

<select multiple size=3 name=color>
<option name=red>red</option>
<option name=blue>blue</option>
<option name=green>green</option>
</select><br>
<input type=submit name=submit value="try it"> <br>
</form>
</body></html>
@

