0

We have the following directory structure:

  Webapps->WEB-INF-JSP
  Webapps->WEB-INF-Tiles.xml
  Webapps-error.jsp

I have an issue with using error.jsp in my tiles xml file. I want the default layout to be applied to error.jsp. How do i access error.jsp in tiles.xml? If i give the following it doesnt work

  <definition name="/error" extends="default">
  <put-attribute name="body" value="/error.jsp" />
  </definition>

Any input will be appreciated

rodrigoap
  • 7,405
  • 35
  • 46
user841293
  • 67
  • 1
  • 1
  • 8
  • I don't really understand your question, what about value="/error.jsp"? – Guido Jan 25 '12 at 14:35
  • Seems ok. What error (stacktrace...) are you getting? – Guido Jan 26 '12 at 15:13
  • I am not getting any error but the default layout(header, footer) in not getting applied in the error page.Whenever an error happens and user gets a 404 page..we want the default layout to be applied to that page – user841293 Jan 26 '12 at 15:58

0 Answers0