How to iterate array and display the values in a velocity template?

Ashish Biswal April 11, 2019

I have an array passed from the java file to the velocity template and I want to iterate that particular array so as to display its values in the select field options

1 answer

0 votes
Iago Docando
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 11, 2019
Ashish Biswal April 11, 2019

@Iago Docando 

Thanks for the help, actually i have achieved this.

Any idea how to iterate a hashmap, found a few articles worked accordingly but its not working can you please help?

shubham May 16, 2021

I have an array in my java file and I want to iterate that array and get the value in dropdown in velocity template . How can I do this ? 

Suggest an answer

Log in or Sign up to answer