简便javabean赋值:(表单内容赋值到相应的javabean属性)
jsp:usebean 语法:请参见:http://turingbook.group.iteye.com/group/blog/577256
<jsp:usebean id="对象名" class="类名"/>
<jsp:setProperty name="对象名" property="*"/>(前提:表单元素名一定要跟javabean属性名相同)
jsp:setProperty语法:
<jsp:setProperty
name="beanInstanceName"
{
property= "*" |
property="propertyName" [ param="parameterName" ] |
property="propertyName" value="{string | <%= expression %>}"
}
/>