You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Pacheco, Brent" <Br...@mail.dor.state.mo.us> on 2003/11/26 01:03:07 UTC

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

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org