I plan to use JSP to pull some values from my properties file, and I want to populate an array with those values.
So could I have JSP in my <script> tags?
(In my mind, this will work - but before I go spending time doing it and it doesn't work I was just going to ask. I know that JSP runs first and only once)
Sure, you could have JSP code inside a <script> element. But as you already know, that JSP will be evaluated before the browser even sees the <script> element. So just make sure your JSP code generates a Javascript assignment statement which assigns an array to a variable.
Toni Howlett
Greenhorn
Joined: Jan 18, 2012
Posts: 25
posted
0
Alrightie - Awesome!! Thanks
Bear Bibeault
Author and opinionated walrus
Marshal