Cedric wrote:
> You try to do something like <tiles:insert attribute="menubar" />, but 
> there is no menubar attribute defined for your current tiles.
> Check the definition used to insert the current tiles: is there a 
> menubar attribute ?

Sorry for the incomplete message, I hit the wrong button as I was shutting
down yesterday.  Here's what I've done to take a working tiles page and
cause it to turn into a page of errors:

<definition name="masterPage" path="/WEB-INF/jsp/basicLayout.jsp">
     <put name="stylesheet"  value="/css/style.css" />
     <put name="title"       value="Benefactor Web" />
     <put name="banner"      value="/WEB-INF/jsp/banner.jsp" />
     <put name="menubar"     value="/WEB-INF/jsp/menubar.jsp" />  <!-- added
this line -->
     <put name="footer"      value="/WEB-INF/jsp/footer.jsp" />
     <put name="script"      value="/WEB-INF/jsp/javaScript.jsp" />
  </definition>

.../WEB-INF/jsp/menubar.jsp merely contains the text:
menu bar

Added this to basicLayout.jsp:
<tiles:insert attribute="menubar" />

Stop and start Tomcat, and the page that was working now displays:
[ServletException in:basicLayout.jsp] Error - Tag Insert : No value found
for attribute 'menubar'.'
javax.servlet.ServletException: Error - Tag Insert : No value found for
attribute 'menubar'.

If I take the insert out of basicLayout, it all goes back to working again.

The REALLY WEIRD thing is that this worked, once, yesterday.  I saw the text
stored in menubar.jsp appear on my page, but it was in the wrong place.
When I edited basicLayout.jsp and moved the <tiles:insert> tag to a
different place, this started happening.

I can see in the log that BeanUtils is working with the "menubar" and
"/WEB-INF/jsp/menubar.jsp" values, but I don't really know what I'm looking
at.

I've tried deleting all the files in the work directory, stopping and
starting Tomcat [4.1.18] and I also tried 1.1b3 and the nightly from the
13th.  Those, unfortunately, leave me with a completely blank page.

Has anyone seen a similar problem?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Reply via email to