czw., 17 cze 2021 o 13:24 albert kao <albertk...@gmail.com> napisał(a):
>
> I developed a web application with Java (Struts 2) and Web Experience
> Toolkit (WET - https://github.com/wet-boew/wet-boew), which is running on
> the WebLogic 12c server.
> When any one of the HTTP status codes 403, 404, 500, 503 occurs, my web
> application will display a corresponding web page.
> e.g. When the HTTP status code 503 occurs, my web application will display
> the web page 503.html.
> How to set up or simulate the conditions to test my web application web
> pages for HTTP status codes 403, 404, 500, 503?
> i.e. simulate the HTTP status codes 503, etc so as to test my web
> application UI to ensure that 503 is handled properly, assuming that the
> webserver works properly.

Exception mapping isn't enough?
https://struts.apache.org/getting-started/exception-handling.html

Or you can always re-implement ExceptionMappingInterceptor and used in
your custom stack
https://struts.apache.org/maven/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/ExceptionMappingInterceptor.html


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to