You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by William Salvucci <Wi...@dn.netl.doe.gov> on 2003/07/03 15:28:42 UTC

[tiles] ComponentContext returning null

Can anybody explain how the component context is set? 

>From within an Action when I call 

ComponentContext context = ComponentContext.getContext( request );

context is always null.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [tiles] ComponentContext returning null

Posted by Cedric Dumoulin <ce...@apache.org>.
  The ComponentContext exist only if you are in a tile. You are in a 
tile if you insert your jsp or action with one of the tile 'insert' 
mechanism: <tiles:insert ..> or a forward to a tile definition. 
Otherwise, the ComponentContext doesn't exist.

   Hope this help,

         Cedric

William Salvucci wrote:

>Can anybody explain how the component context is set? 
>
>>>From within an Action when I call 
>
>ComponentContext context = ComponentContext.getContext( request );
>
>context is always null.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org