I had a simillar problem using tiles(version prior to 1.1) and enclosed is
an email discussing the issue. See if this fix works for you.

- Padma

-----Original Message-----
From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 12:30 PM
To: Struts Users Mailing List
Subject: Tiles extend


Hi all:

I'm developing my first aplication with struts and tiles. I define the tiles
in a XML file and I wanted to extend a definition. In the documentation said
when I extend a definition only must fill the attributes "name" and
"extends", but not "path" because it's extended. However when I did that an
error occur (Cannot get request dispatcher for path). If I put the same path
in both definitions it works fine. Is it a bug or always a must fill the
path attribute.

I'm using Struts 1.1 beta2.

Thank you

-------------------------------------------------------------
Miguel �ngel Medina L�pez
Logic Factory: www.logic-factory.com
Granada - Espa�a




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


--- Begin Message ---

  Padma,

  Yes, this is the expected behavior. I have discover and corrected this
bug few days ago, but forget to update distribution ;-(. The same thing
should be done with  role !
  Thanks for this bug report, and its fixe, even if we have found it
nearly in the same time ;-) I will update distribution asap.

  Cedric

Padma Ginnaram wrote:

>
>
> Cedric,
>
> I am trying to extend a definition and found that the path of the
> parent definition is always used. In the
> XmlDefinition.resolveInheritance method.
>
> I assuming this is a bug, since the overload method documents that we
> need to use the childs path. I made the following change, can you
> confirm if this is the expected behaviour.
>
>
>       if (this.path == null) {
>          setPath( parent.getPath() );
>       }
>
> Thanks,
> Padma
>

--- End Message ---
--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to