Greetings,
    I have the following TilesAction configuration:

tiles-defs.xml
 <!-- Main page layout used as a root for other pages defintion.-->
    <definition name=".admin.mainLayout" path="/web/admin/layouts/adminBase.jsp"
   controllerUrl="/do/AdminAssociatedAction">
      <put name="title"     value ="Administracion"/>
      <put name="header"    value="/web/admin/header.jsp"/>
      <put name="menu"    value="/web/admin/menu.jsp"/>      
      <put name="message"   value="/web/admin/message.jsp"/>
      <put name="body"    value="/web/admin/body.jsp"/>
      <put name="footer"    value="/web/admin/footer.jsp"/>
    </definition>

struts-config.xml
    <!-- AdminWelcome -->
    <action path="/AdminWelcome" type="org.apache.struts.scaffold.SuccessAction">
        <forward name="success" path=".admin.index.page" />
    </action>

    <!-- AdminAssociatedAction -->
    <action path="/AdminAssociatedAction" 
type="com.mubimedia.project.associatedAction.AdminAssociatedAction">
    </action>

AdminAssociatedAction.java
 public ActionForward execute(
  ComponentContext arg0,
  ActionMapping arg1,
  ActionForm arg2,
  HttpServletRequest arg3,
  HttpServletResponse arg4)
  throws Exception {
   
  DateFormat df = DateFormat.getDateInstance (DateFormat.SHORT, getLocale(arg3));   
    
  arg0.putAttribute("date", df.format(new Date()));
  //arg3.setAttribute("date", df.format(new Date()));
  getServlet().log("ferran date:" + df.format(new Date()));  
  return null;
 }

My question:
    If I iterate over all the request attributes, the context attribute exists but it 
has the key "CompContext", whereas I have read in the documentation that it should be 
under the "org.apache.struts.taglib.tiles.CompContext" key ... What's going on? When I 
get the key, "CompContext" is empty without the attributes I have inserted, like the 
date String ... Am I missing something? What am I doing wrong??

versions:
jdk 1.40_02
struts: 1.1b3
tomcat: 1.4.18

Ferran Parra
Departament de Noves Tecnologies
MUBIMEDIA S.L.
----------------------
[EMAIL PROTECTED]
Mallorca, 275, 1r 2a
08008 BARCELONA
T. (+34) 93 215 21 91
F. (+34) 93 215 41 21

Reply via email to