All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.
'Fact 2: Any page directive attribute except import can occur at most once in a translation unit.
Now, in this question, both the including and the included files have an errorPage directive. Thus, the resulting including file (companyhome.jsp) will contain 2 errorPage directives, which is wrong.'
About Fact 2, I say YES, Any page directive attribute can occur more that once in a translation unit. If you include the same error page in errorPage (companyhome.jsp or simpleerrorhandler.jsp) in both pages this works perfectly.
Yes, as per section JSP 1.10.1 in JSP Specification:
There shall be only one occurrence of any attribute/value pair defined by this directive in a given translation unit, unless the values for the duplicate attributes are identical for all occurrences.
But in the question the values of the errorPage are not identical in both the pages. Explanation has been enhanced to make it clear.
thank you for your feedback!
Paul
If you like our products and services, please help us by posting your review here.