Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

154
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda