FYI, here is the debug message from DefinitionDispatcherAction class.

[App=LS][Oct-27 16:41:31:199]
org.apache.struts.tiles.actions.DefinitionDispatcherAction (DEBUG) - get
Definition {name=page.viewWeekSchedule, path=/viewWeekSchedule.jsp,
role=null, controller=null, controllerType=null,
controllerInstance=null, attributes={title=Labor Scheduling -
Create/Maintain Schedule, header=/header.jsp,
schedule=/unitWeekScheduleContent.do,
breadcrumb=breadcrumb.viewWeekSchedule,
topmenu=topMenu.viewWeekSchedule,
scheduleSummary=/unitWeekProductivityContent.do}} 

-----Original Message-----
From: David McReynolds [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 4:10 PM
To: [EMAIL PROTECTED]
Subject: DefinitionDispatcherAction


Trying to invoke a tile definition via DefinitionDispatcherAction. All I
get is a blank page. Nothing in log file.
This URL shows up in the address
http://oc4j.server.com/labor/viewWeekSchedule.do;jsessionid=0a021a42502f
3623a2117e432bb4d1b48a258cd6cd?def=page.viewWeekSchedule

The HTML is pretty much empty.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD> <META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD> <BODY></BODY></HTML>

FYI this is a display-only page so no Form since nothing to submit.

This is the def I would like to load.

    <definition name="page.viewWeekSchedule"
page="/viewWeekSchedule.jsp">
        <tiles:put name="title" value="Labor Scheduling -
Create/Maintain Schedule"/>
        <tiles:put name="breadcrumb"
value="breadcrumb.viewWeekSchedule"/>
        <tiles:put name="header" value="/header.jsp" />
        <tiles:put name="topmenu" value="topMenu.viewWeekSchedule" />
        <tiles:put name="schedule" value="/unitWeekScheduleContent.do"
/>
        <tiles:put name="scheduleSummary"
value="/unitWeekProductivityContent.do" />
    </definition>


This is the jsp that contains the html:link.

<div class="clsAppLeftMenu">
    <div class="clsAppLeftMenuEntry"><html:link
forward="viewWeekSchedule">Create/Modify Schedule</html:link></div>
</div>        

Here are the struts.config snippets.
Forward . . .
    <global-forwards>
        <!-- ====== Main Menu ====== -->
        <forward name="mainMenu" path="/mainMenu.do"/>
        <forward name="viewWeekSchedule"
          path="/viewWeekSchedule.do?def=page.viewWeekSchedule"/>
. . .


Action . . .
        <!-- ===== View Week Schedule ======= -->
        <action path="/viewWeekSchedule" 
        
type="org.apache.struts.tiles.actions.DefinitionDispatcherAction"
            parameter="def" >
              <forward name="error" path="/errors.jsp"/>
        </action>

        <!-- ===== Unit Week Schedule Content======= -->
        <action path="/unitWeekScheduleContent"
        
type="com.cfa.apps.ls.action.DisplayUnitWeekScheduleAction"
                scope="request"
                validate="false">
            <forward name="success" path="/weekScheduleContent.jsp"/>
        </action>
        
        <!-- ===== Unit Week Productivity Content======= -->
        <action path="/unitWeekProductivityContent"
        
type="com.cfa.apps.ls.action.DisplayUnitWeekProductivityAction"
                scope="request"
                validate="false">
            <forward name="success" path="/weekScheduleSummary.jsp"/>
        </action>

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


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

Reply via email to