java 后台给前台传值,html:select,html:text等加载页面显示默认值的方法

阅读 54

2023-04-27


后台写

request.setAttribute("dateCreated","黑色头发");




前台接收:


html:text



<html:text property="dateCreated" value="${dateCreated}" />




html:select



<html:select property="accountsUser" value="${dateCreated}">
	<html:option value="">--请选择用途--</html:option>	
</html:select>




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


精彩评论(0)

0 0 举报