get bean data in javascript array

I am making the image slider where I want to pull the image name from server. For dynamic, below is what I have. Now I want to replace `imagearray` with the image names that I have on database. Hence what I did is below. xmlns:c="http://java.sun.com/jsp/jstl/core" // pulling image names and planned to replace `imagearray:...` to `imagearray:data`. But its not working. When I print ${item.id}==${item.title} I get proper id and title for that image. Any idea how can I get image path in javascript. [Reference for above loop](https://stackoverflow.com/questions/4506816/is-possible-javascript-extract-value-from-cforeach-tag) Even I tried below link. But still not working. https://community.jboss.org/thread/160332 (look for `3. Dec 23, 2010 8:31 AM (in response to Eswara MoorthyNEC)`)
Answer - Below link helped me for answer. https://stackoverflow.com/a/4143187/1066828

以上就是get bean data in javascript array的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏