Currently a definition cannot be used as a target for a html:link.  You can put a 
definition in a .jsp then forward to the .jsp.  But calling an action to execute a 
definition is pretty easy you can use 
org.apache.struts.tiles.actions.DefinitionDispatcherAction with a parameter or define 
your own action.  I defined my own so I can do some logging and error checking plus 
with a little modification you can allow the same action to handle other scenarios 
like passing to an action based on parameter.

Cal

http://www.calandva.com/            Last update 08/01/03


-----Original Message-----
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 14:11
To: Struts Mailing List
Subject: Calling a tiles definition from a jsp?

We've got all our tiles definitions in tiles-def.xml in the web-inf folder,
and we were wondering if it is possible to somehow call a definition and
load it from a jsp?

For example if a user comes to our site thats not logged in we wanted to
direct him to a jsp that uses one of our tiles def's like .app.Home  instead
of forwarding to a blank action that all it does is forward a user to that
same definition.  Is this possible at all or do I have to go through an
action.
Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary 
and confidential information intended only for the use of the recipient(s) named 
above.  If you are not the intended recipient, you may not print, distribute, or copy 
this message or any attachments.  If you have received this communication in error, 
please notify the sender by return e-mail and delete this message and any attachments 
from your computer.

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

Reply via email to