Visualizzazione dei risultati da 1 a 2 su 2

Discussione: Struts - HashMap

  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2009
    Messaggi
    86

    Struts - HashMap

    Ciau, in struts come faccio a scorrere un hashmap? So con iterator etc etc, ma per recuperare la chiave?
    Shashia

  2. #2
    Utente di HTML.it L'avatar di andbin
    Registrato dal
    Jan 2006
    residenza
    Italy
    Messaggi
    18,284

    Re: Struts - HashMap

    Originariamente inviato da Sashias
    Ciau, in struts come faccio a scorrere un hashmap? So con iterator etc etc, ma per recuperare la chiave?
    <logic:iterate>

    [...] if you iterate over a Map, the exposed object is of type Map.Entry that has two properties:

    * key - The key under which this item is stored in the underlying Map.
    * value - The value that corresponds to this key.
    Andrea, andbin.devSenior Java developerSCJP 5 (91%) • SCWCD 5 (94%)
    java.util.function Interfaces Cheat SheetJava Versions Cheat Sheet

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.