首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

s2sh ssh 前台文本框的值传给后台老板,取值,获取值

2012-08-24 
s2sh ssh 前台文本框的值传给后台,取值,获取值前台input idpersonName nameperson.zhongwenming后

s2sh ssh 前台文本框的值传给后台,取值,获取值
前台

<input id="personName" name="person.zhongwenming">


后台
ActionContext ac=ActionContext.getContext();HttpServletRequest request=(HttpServletRequest) ac.get(ServletActionContext.HTTP_REQUEST);String personName=request.getParameter("person.zhongwenming");


.hbm.xml
<property name="zhongwenming" type="java.lang.String">            <column name="ZHONGWENMING" length="30" not-null="true" /></property>


黑色头发:http://heisetoufa.iteye.com/

热点排行