• Post Reply Bookmark Topic Watch Topic
  • New Topic

Behavior: Include standard action and Include directive  RSS feed

 
raghu dubey
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Ref: page 516, HFSJ.

SkipPageException just stops the processing on\f the page that directly invoked the tag.

NOw suppose that we have JSP A that is including JSP B using an include standard action. JSP A<<includes<<JSP B. JSP B invokes a tag that throws a SkipPageException. IN this case, the processing of B will stop, but rest of A will happen.

What if we use a include directive?. The directive will kind of copy paste the whole JSP B into JSP A. So JSP A will actually be the one invoking the tag at runtime. THis should stop the processing of JSP A as well.? Is this correct.

Thanks.
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Yes. When you use include directive. The included fragment is part of same execution unit. So, it also be skipped.

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!