Yes, that is correct.  You may refer to the propert 'name' in bean
'myAsoc' in two ways:

${myAsoc['name']}
${myAsoc.name}

For a good description of the JSP 2.0 EL and JSTL, see

JSP 2.0: The New Deal, Part 1
http://www.onjava.com/pub/a/onjava/2003/11/05/jsp.html

JSP 2.0: The New Deal, Part 2
http://www.onjava.com/pub/a/onjava/2003/12/03/JSP2part2.html

JSP 2.0: The New Deal, Part 3
http://www.onjava.com/pub/a/onjava/2004/04/21/JSP2part3.html

JSP 2.0: The New Deal, Part 4
http://www.onjava.com/pub/a/onjava/2004/05/12/jsp2part4.html

Derek

> -----Original Message-----
> From: Helios Alonso [mailto:[EMAIL PROTECTED] 
> Sent: June 2, 2004 11:23 AM
> To: Tag Libraries Users List
> Subject: RE: [JSTL] Indexed array variable (and associations)
> 
> 
> Well, c:set can set associations.
> 
> If the code I saw is fine, you can do this:
> 
> <c:set target="myAsoc" property="name" value="John"/>
> to add an entry in myAsoc: Map
> telling that "name" correspond to "John"
> 
> how do I do to access it?  ${myAsoc['name']}   ?
> 
> At 12:05 02/06/2004 -0300, you wrote:
> >2 questions:
> >
> >1) At the moment, does EL allows bracket notation for 
> accesing arrays?
> >2) If the answer is yes, it works with associations? (Maps 
> from -let's
> >say- strings, to beans)
> >
> >Sorry, I can't try now...
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
NOTICE: This email contains privileged and confidential information and is intended 
only for the individual to whom it is addressed. If you are not the named addressee, 
you should not disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this transmission by mistake and delete 
this communication from your system. E-mail transmission cannot be guaranteed to be 
secured or error-free as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses. 

AVIS: Le présent courriel contient des renseignements de nature privilégiée et 
confidentielle et n’est destiné qu'à la personne à qui il est adressé. Si vous n’êtes 
pas le destinataire prévu, vous êtes par les présentes avisés que toute diffusion, 
distribution ou reproduction de cette communication est strictement interdite.  Si 
vous avez reçu ce courriel par erreur, veuillez en aviser immédiatement l’expéditeur 
et le supprimer de votre système. Notez que la transmission de courriel ne peut en 
aucun cas être considéré comme inviolable ou exempt d’erreur puisque les informations 
qu’il contient pourraient être interceptés, corrompues, perdues, détruites, arrivées 
en retard ou incomplètes ou contenir un virus.  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to