Here's the relevant entry in my tiles-def.xml file:
 
<definition name="Tiles.Template" page="/tiles/template.jsp">

          <put name="title" type="string" value="Tiles Template" />

          <put name="logo" value="/tiles/logo.jsp" />

         <put name="header" value="Patient.Header" />

         <put name="body" value="/tiles/body.jsp" />

         <put name="footer" value="/tiles/footer.jsp" /> 

</definition>

<definition name="Patient.Header" path 
="/tiles/PatientHeader.jsp"controllerUrl= "/PatientHeaderTile.do" ></definition>

<definition name="vax.input" path ="/tiles/VAXHistoryInput.jsp"controllerUrl= 
"/Vax.do" ></definition>

<definition name="vax.edit" extends="Tiles.Template" >

          <put name="title" type="string" value="Joe's Input Vax Information" />

          <put name="body" value="vax.input" />

</definition>

Here's the relevant entry in my struts-config.xml file:
 
 
<action path="/Vax"

type="org.springframework.web.struts.DelegatingActionProxy"

name="VaxHistoryInputForm"

validate="false"

parameter="action"

scope="session" >

<forward name="edit" path="vax.edit"/> 

<forward name="summary" path="/tiles/VaxSummary.jsp"/> 

</action>

 

Thanks for your help.


________________________________

From: Alex Wibowo [mailto:[EMAIL PROTECTED]
Sent: Thu 3/8/2007 4:54 PM
To: Struts Users Mailing List
Subject: Re: Struts Tiles



Could you post the relevant section of your tiles-config & struts-config ?

Cheers.
WiB

On 3/9/07, Joe Yuen <[EMAIL PROTECTED]> wrote:
>
> I am using struts 1.2.9 and am trying to understand how tiles works. I am
> getting the following error:
>
> javax.servlet.ServletException: Can't find Tile context for '
> com.chisq.vax.action.VaxAction'. TilesAction subclasses must be called
> from a Tile
>
> What is this "Tile context" that it is complaining about and how is it
> created?
>
>
>
> Thanks.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



--
Best regards,


Alex Wibowo
-------------------



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

Reply via email to