velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jake Tom <agdefen...@yahoo.com>
Subject FormTool doesn't work
Date Wed, 25 Jun 2008 05:36:00 GMT
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…


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message