Consider Java
Jay's Tech Blog
2006-04-17
在js中使用jsp脚本
本来是想表达这个意思:
var username = <%=(String)session.getAttribute("btoa_userName")%>
结果不成,执行不了,问了下同事,很简单,把jsp脚本引用起来就OK了:
var username = '<%=(String)session.getAttribute("btoa_userName")%>'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment