java - Modify the HTML of a servlet's errorPage from a Filter -
i have requirement rewrite html generated web application. requirement applies pages equally naturally went filter.
i cribbed stream wrapping approach oracle documentation on filters , works cases. unfortunately, if servlet throws exception flow of execution leaves filter , rewriting logic not executed. means html of error pages not modified.
i want intercept error page response well. how do that?
try adding filter-mapping
:
<dispatcher>forward</dispatcher> <dispatcher>error</dispatcher>
Comments
Post a Comment