velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jack-tom <agdefen...@yahoo.com>
Subject Re: FormTool doesn't work
Date Mon, 30 Jun 2008 04:27:05 GMT

hah,resolved!
<INPUT class='text' type='text' name='user.username'>



jack-tom wrote:
> 
> Hi good day,
> May I know how to use the velocity FormTool.. 
> publicclassUserForm extendsActionForm {
>  
>     privateUser user;
>     publicUserForm(){
>        this.user=newUser();
>     }
>     publicUser getUser() {
>        returnuser;
>     }
>     publicvoidsetUser(User user) {
>        this.user= user;
>     }
> …
> In jsp:
> <html:form action="/user">
> <html:text property="user.username"/>
> <html:text property="user.password"/>
> <html:submit value="submit"/>
> </html:form>
> In velocity how?
> <INPUT type="text" name="$form.bean.user.username"> doesn’t work!
> Thanks…
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/FormTool-doesn%27t-work-tp18106592p18188504.html
Sent from the Velocity - User mailing list archive at Nabble.com.


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


Mime
View raw message