I use this for a similar reason:
<c:set var="mapping"
value="${requestScope['org.apache.struts.action.mapping.instance']}"/>
<c:set var="nomeForm" value="${mapping.attribute}" scope="request"/>
Regards, Fabio.
> -----Messaggio originale-----
> Da: Pacheco, Brent [mailto:[EMAIL PROTECTED]
> Inviato: mercoled� 26 novembre 2003 01:03
> A: 'Struts Users Mailing List'
> Oggetto: Determining the name of a DynaValidatorForm at runtime in JSP
>
>
> Howdy!
>
> I am using Tiles in my current Struts application. I have a
> particular tile
> that I will be including inside one of several other tiles with a
> <tiles:insert> statement. This included tile will need to
> access a property
> of the DynaValidatorForm bean which will vary depending on which
> DynaValidatorForm is associated with the tile it is inserted
> into. Is there
> an easy way to figure out which DynaValidatorForm is
> currently being used
> without having to explicitly check for each possibility like this:
>
> <logic:present name="inventoryAddItemTypeForm">
> blah...blah...blah...
> </logic:present>
> <logic:present name="inventoryDistributeForm">
> blah...blah...blah...
> </logic:present>
>
> The above logic works, but it's clunky, and requires me to
> add in additional
> <logic:present> tags every time I decide to insert the tile into a new
> parent tile. Any ideas?
>
> Thanks,
>
> Brent
>
Ai sensi della Legge 675/96, si precisa che le informazioni contenute in questo
messaggio sono riservate ed a uso esclusivo del destinatario. Qualora il messaggio in
parola Le fosse pervenuto per errore, la preghiamo di eliminarlo senza copiarlo e di
non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.<BR><BR>This
message, for the law 675/96 may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the addressee, you must
not use, copy, disclose or take any action based on this message or any information
herein. If you have received this message in error, please advise the sender
immediately by reply e-mail and delete this message. Thank you for your cooperation.