Hi

> I was afraid that would be the answer :-( I really wanted to avoid
having files with page fragments that weren't well formed like that...
I'll have to dig into the Tiles code and see how ameanable the rendering
model is to being 'masaged' into supporting what I want it to do :-)

I was a beginner too, so don't be so cruel with yourself ;-) By the way,
if you want to make something complicated, remember that you can put ANY
URL in your <put> element. For example, I put an Action's URL, so that it
loads some data. This Action forwards to a JSP page that will be displayed
only in that part of the page.

>
> What's wrong with starting tiles names with '/' by the way? I seem to
remember that Struts complained when I didn't, though I've been doing it
this way long enough I don't recall the details.

Page definitions are not recognized as correct paths by Struts, so that
you cannot call a page definition directly with an URL (please Struts team
correct me if I am wrong). You have two possibilities two show a Tiles
definition:
1. Through a JSP page, using:
<tiles:insert definition="nameofthedefinition" />
2. You can forward to a tiles definition, i.e. in your struts config you
can use:
<forward name="forwardname" path="nameofthedefinition" />
but you must modify the <controller> element in your struts-config.xml:

<controller
processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>

Ciao
Antonio Petrelli



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

Reply via email to