Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to include a jsp file only once

843838Jun 21 2007 — edited Jun 21 2007
Hi,

I have collected all my common jsp stuff in include.jsp that is included in all app jsp pages. Depending on business logic some jsp pages (say a.jsp) might redirect to other jsp pages (say b.jsp) - in this case the include.jsp would be included twice as part iof request and my app breaks

Does jsp have a "include once" feature - like PHP include_once or do I have to do messy stuff with request variables..

Thanks,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 19 2007
Added on Jun 21 2007
3 comments
469 views