Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
How to render list from js variable in jsp

So I want to render li in jsp but the thing is I want to render the list which is present in my js.

I will keep my question small and clear. also if this is repeated question please link the original question bcz I was unable to find it.

Here is my jsp file which has

<div id="dropDownOpns">
    <ul id="bank_id" class="payment_modes">
        <c:forEach var="item" items="${bankList}">
            <li>${item.bank}</li>
       </c:forEach>
    </ul>
    </div>

and below is the script tag which has this

<script>
  var bankList = [{"bank":"ABC","emis":[{roi:10}]},{"bank":"PQR","emis":[{roi:12.5}]}];
</script>

At the end all I'm getting is

<div id="dropDownOpns">
 <ul id="bank_id" class="payment_modes">
 </ul>
</div>

Without li items.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!