> Can anyone explain where tile definitions can be used in 
> action mappings (see below)?  I have had trouble when I use 
> ActionError to return to the input page.

Answers below.

> Also, I see examples of definitions starting with a '.'.  Is 
> this important/relevant?

More of a standard/best practice than important or relevant to your 
first question.

> Action using defintion as "input" as well as forward path.

Should work.

> Can links be set to defintions?
> 
>       <html:link action="app.extractDefinition" >

No, you need an action of some kind that will forward to a definition.
Most people use DefinitionDispatcherAction.  See
http://jakarta.apache.org/struts/api/org/apache/struts/tiles/actions/Definit
ionDispatcherAction.html

Otherwise you end up with a basic link to a document with your tile name,
which if you stop and think about it makes sense.  So you'll end up with a
404.

> This didn't seem to work and I had to use:
> 
>       <html:link href="/ToExtract" >
> 
> and:
> 
>       <action path="/ToExtract" forward="app.extractDefinition" />

That'll work, too.
You also can't declare a global forward to a tile and expect to have
it work correctly, though, so don't try it. =)

> I have read a lot but haven't found a clear outline to using 
> defintions in Struts.

Yeah, I noticed that, too.  But I managed to figure it out--and it looks 
like you're halfway there. =)

David Hibbs, ACS
Staff Programmer / Analyst
American National Insurance Company
 

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

Reply via email to