You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by selenity <ca...@gmail.com> on 2008/09/11 05:01:52 UTC

APACHE VELOCITY newbie

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>

         $link.forward.logon_vm_src 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/APACHE-VELOCITY-newbie-tp19427018p19427018.html
Sent from the Velocity - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org