> When using tiles this way, does this mean that any forward I define in
> my struts-config.xml should be a valid Tiles Definition?
> 
> Would that then imply that every page in my application is specified
> by a tiles Definition, and that's how I GET to any given page?

Yes, that's typically the way you would want to do it, but you're by no means 
forced to do it that way.  Your struts-config can forward to a mixture of 
tiles-defs, JSPs, etc... but I prefer to keep everything tiles-centric.
 
> example: I want to create a Profile Editing page, so I create
> profileEditBody.jsp and a NEW definition in the tiles-defs file
> specifying only the TITLE and BODY ..a la
> 
> <definition name="page.profile.edit" extends="base.definition">
>      <put name="title" value="Edit Profile Page" />
>      <put name="body" value="/jsp/profileEditBody.jsp" />
> </definition>
> 
> Bue heres the question... how do I call this thing from an Action
> Class?!?!?! Argh!!!!

just refer to the definition name in the action mapping your struts-config:
 
<action path="/showProfileEdit" type=... >
  <forward name="success" path="page.profile.edit"/>
</action>
 
HTH,
- Scott

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

Reply via email to