Greetings,
I'm experienced with Struts 1.0.2 and am trying to use 1.1 with Tiles for
the first time, and have successfully created my layout, but now I can't
seem to get my definitions to register in the tiles-defs.xml.  I've been at
this for two days and searched newsgroups and archives but can't seem to
find a solution...
I am using Struts 1.1 b3 on Weblogic 6.1 SP4

Using the struts-blank.war as my example, I placed the following in my
struts-config.xml:
  <controller processorClass
="org.apache.struts.tiles.TilesRequestProcessor" />
  <message-resources parameter="resources.application" />
  <plug-in className="org.apache.struts.tiles.TilesPlugin">
    <set-property property="definitions-config" value
="/WEB-INF/tiles-defs.xml" />
    <set-property property="moduleAware" value="true" />
    <set-property property="definitions-parser-validate" value="true" />
  </plug-in>

then in the WEB-INF/tiles-def.xml, I have put:
<tiles-definitions>
    <definition name="sccLayout" path="/common/layouts/upLayout.jsp">
      <put name="pageTitle" value="CHANGEME"/>
      <put name="stylesheet" value="css/scc.css" />
      <put name="menuoptions" value="/common/scc-menuoptions.jsp" />
      <put name="body-content" value="CHANGEME"/>
    </definition>
</tiles-definitions>

Finally, in my jsp file, I have:
<tiles:insert beanName="sccLayout" beanScope="request" flush="true">
  <tiles:put name="pageTitle" value="Shipment Cancellations" direct="true"
type="string"/>
  <tiles:put name="body-content" type="string">

  <html:errors/>

  <center><h3><bean:message key="index.heading"/></h3>
  <table width="50%">
    <tr><td>
        <bean:message key="index.message"/>
    </td></tr>
  </table>
  </center>

</tiles:put>
</tiles:insert>

Any time I hit this jsp, I get the following error:
<Feb 21, 2003 12:08:06 PM CST> <Error> <HTTP>
<[WebAppServletContext(3210383,scc,/scc)] Root cause of ServletException
javax.servlet.jsp.JspException: Error - Tag Insert : No value defined for
bean 'sccLayout' with property 'null' in scope 'request'.
        at
org.apache.struts.taglib.tiles.InsertTag.processBean(InsertTag.java:629)
        at
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:485)
        at
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:445)
        at jsp_servlet._secure.__index._jspService(__index.java:110)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:321)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
        at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:250)
        at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1033)
        at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:269)
        at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:436)
        at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:312)
        at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
        at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

I have verifyed this layout will work, but only if I use it as a JSP
include.
Any clues?  Am I missing something obvious here??

TIA


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

Reply via email to