Originally posted by Ben Souther:
JSTL and EL work with scoped variables.
They are meant to replace scriptlets and are not designed to work together.
Why are you trying to use both in the same page?
Coz I am trying to replace this code
With this code
So I have created an array of String containing the list. The ${dataSources} should be the variable
String[] dataSources = {"DS1","DS2","DS3","DS4"}; that I have created in a scriptlet
Edit: I had to solve this problem by moving the String[] dataSources to my DataSourceUtil and make a getter for it. Then I created a bean like this
<
jsp:useBean id="dataSourceUtil" class="DataSourceUtil"/>
Then I access the array using ${dataSourceUtil.dataSources}
[ July 17, 2007: Message edited by: Sverre Moe ]
[ July 17, 2007: Message edited by: Bear Bibeault ]