There is a code snippet given to demonstrate SkipPageException in HFSJ, page 515. I have a dount on that.
I have answered it right as shown in the page 516, but I thought the behavior of SkipPageException might depend on whether
jsp:include is used (or) include directive.
I mean ...
jsp:include results in a dynamic content generation and separate
servlet for the included file (page B) and thus exception in that page B (_jsp.java) will end there itself and will not affect the parent jsp (page A) i.e the _jsp.java file.
Where as, <%@ include ... results in a single servlet at the translation time and thus any SkipPageException thrown in the pageB will stop the rest of contents in page A from being displayed.
Am I right here ? Can anyone give me a valid answer?
I am trying to replicate this in code but it will be fine, if someone can answer in between.
Regards,
Mani