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

action中有一个String类型的test属性,小弟我想在前台用JS alert出来,如何写

2013-06-26 
action中有一个String类型的test属性,我想在前台用JS alert出来,怎么写?action中有一个String类型的test属

action中有一个String类型的test属性,我想在前台用JS alert出来,怎么写?
action中有一个String类型的test属性,我想在前台用JavaScript alert出来,怎么写?


[解决办法]
servlet的话可以将这个request.setAttribute("test", testValue)
jsp中 alert(${test})
struts的话可以
alert('<bean:write  name="yourformname" property="test" />')
或者
alert(${yourformname.test})

have a try

热点排行