Inside our ActionForm class we declare attributes exactly according to the HTML form fields we have in our JSP file. Should the name of these attributes inside ActionForm be exactly the same as the name of their counterparts inside HTML form? How we could have different names for them inside ActionForm? For instance in JSP we have: "txtbUID", and in ActionForm we want to map this field to an attribute like "username"?
You Need to match you jsp field name with the getter/setter method of the ActionForm field. For ex if u have use txtBuid use setTxtBuid and getTxtBuid in the actionform but this is not a good practice because method does not tell anything about the field.