I am a newbie in apache velocity. Can someone post the code on how that
velocity gets data and post it? a sample is the login page. I am using
netbeans on creating velocity. Please help me.
<html>
<head>
<title>Sign in, Please!</title>
<base href="$link.baseRef">
</head>
<body>
#errorMarkup()
<h3>Sign in, Please! (Velocity Version)</h3>
<form method="POST" action="$link.action.login">
<table border="0">
<tr>
<th align="right">
Username:
</th>
<td align="left">
<input type="text" name="username"
value="$!logonForm.username">
</td>
</tr>
<tr>
<th align="right">
Password:
</th>
<td align="left">
<input type="password" name="password"
value="$!logonForm.password">
</td>
</tr>
<tr>
<td align="right">
<input type="submit" value="Submit" name="submit">
</td>
<td align="left">
<input type="reset" value="Reset" name="reset">
</td>
</tr>
</table>
</form>
View Template<br>
</body>
</html>
this is the code i saw. But how can i post the username and password? do i
need to use servlet? how?
--
View this message in context:
http://www.nabble.com/Velocity-newbie-tp19427967p19427967.html
Sent from the Velocity - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]