velocity-user mailing list archives

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

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">
</form>
...

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.
-Patrick


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


Mime
View raw message