I'm using 1.2.4, with Tiles. (I don't know whether Tiles is relevant, but you might as well know!)

I've got
<global-exceptions>
<exception key="error.general"
type="java.lang.Exception" path="/WEB-INF/globalError.jsp"/>
</global-exceptions>
in my struts-config.xml, which catches exceptions in my Action classes, and redirects them to an error page.


But if I make a mistake in a tile, such as referring to a non-existant bean, or property, I still get a stack trace thrown back to the user.

eg. if I add a spurious <bean:write name="fred"/> I get a page showing:
  500 Internal Server Error
  javax.servlet.jsp.JspException: Cannot find bean fred in any scope
  at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:992)
  at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:227)
  at _web_2d_inf._pages._login._jspService(login.jsp:9)
  [/WEB-INF/pages/login.jsp]
  at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
  ...

Any suggestions as to whether I can configure Struts to capture this (rather than configuring the container, which I also don't know how to do!)?

--
Tommy

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



Reply via email to