Everytime something gets wrong .. i got to see this.
每当出现问题时......我都会看到这个。
How can i make a simple Errorpage with stacktrace in jsf ?
如何在jsf中使用stacktrace创建一个简单的Errorpage?
1 个解决方案
#1
If you use Facelets (which is almost mandatory if you want to develop JSF webapps), an error page is automatically created. You can see an example here.
如果您使用Facelets(如果您想开发JSF webapps几乎是强制性的),则会自动创建错误页面。你可以在这里看到一个例子。
More generally, you can customize your web.xml in order to redirect the user when an error occurs.
更一般地,您可以自定义web.xml,以便在发生错误时重定向用户。
#1
If you use Facelets (which is almost mandatory if you want to develop JSF webapps), an error page is automatically created. You can see an example here.
如果您使用Facelets(如果您想开发JSF webapps几乎是强制性的),则会自动创建错误页面。你可以在这里看到一个例子。
More generally, you can customize your web.xml in order to redirect the user when an error occurs.
更一般地,您可以自定义web.xml,以便在发生错误时重定向用户。