0
点赞
收藏
分享

微信扫一扫

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

秀儿2020 2023-04-27 阅读 51


后台写

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 条评论