-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi
I followed this link and i used in my project. And also i am finding way to print complete stack track as explained here.
Is that possible to print the complete stack trace in the error.zul file.
Hi,
Showing complete error in UI IMHO is not a good idea actually. But it can be useful during dev. Try to add these lines in error.zul. <textbox value="" id="txtError" cols="140" rows="10"/>
<zscript>
import java.io.PrintWriter;
import java.io.StringWriter;
Exception ex = requestScope.get("javax.servlet.error.exception");
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
ex.printStackTrace(pw);
txtError.setValue(sw.toString());
</zscript>
Regards, Henry Girsang
Asked: 2013-05-08 08:47:12 +0800
Seen: 51 times
Last updated: May 15 '13
Error handling: How to propagate sensible error message?
ArrayIndexOuOfBoundsException showing Messagebox
error PWC2788: setAttribute: Non-serializable attribute with name javax.zkoss.zk.ui.Session
no grammar constraints (dtd or xml schema) detected for the document
ListModelList.clear() - Error in ZK Framework?
Getting wierd NullPointerException when using Shiro
Any help to convert the above code in MVC or MVVM without zscript ?
Senthilchettyin ( 2013-05-15 12:43:53 +0800 )edit