velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Olivier <>
Subject VelocityViewServlet and HTML form
Date Tue, 07 Aug 2007 07:56:17 GMT

I'm trying to modify the simple example provided with velocity tools 1.3 (
simple.war ). What i want to do is to add an html form in the index.vm template

<form method="post" action="index.vm">
<input type="text" name="message" value="$!toytool.message">
<input type="submit" value="Send">

When pressing down the 'Send' button, i'm expecting an access to the setter of
message in ToyTool ( the getter works well ), but nothing happens !
What's wrong in the code above ?
do i forget something ( or misunderstand something ? )

Thx for your help.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message