java - Check that error page is only displayed in response to a real application error and not by the user typing in the URL -
java - Check that error page is only displayed in response to a real application error and not by the user typing in the URL -
i have requirement display error page in jsf application when http errors or java exceptions encountered , provide user form on error page can utilize study error possible bug. @ same time need ensure error page displayed in response real application error , not result of user accessing error page straight typing in url , potentially submitting spurious bug reports.
i have tried locating error pages in web-inf prevents user accessing page directly, http post method on form fails when user tries submit bug report.
a quick search on stackoverflow shows there several similar questions, none of them relate utilize case trying meet. closest question have found how observe whether user have reached page jsf navigation rule redirect or typing url? suggests checking referer request header says overzealous proxy/firewall/security software can hide referer header don't believe right solution requirement.
in summary question is.... best way ensure error page contains form displayed when real application error has occurred , not due user typing in url?
note: question next on question (is possible submit form has been rendered jsf page location in web-inf?) asked on stackoverflow didn't answers, i'm hoping not constraining question did might responses.
java jsf jsf-2
Comments
Post a Comment