Can you embed 5 JSPs in one parent JSP ? So in total there are 6 jsp.
Parent jsp acts like a frame in which 5 jsp are embedded taking care of particular area ? Is it possible to do like this ?
hi,
There are frameworks like Tiles, that promotes use of various JSP used as tiles to create a web page.
You can also use <jsp:include> action or include directives to do that.
1. JSP Include Directive (<include ..>)
2. JSP Include Action (<jsp:include>)
There is a difference between these two. JSP Include directive includes the files at compilation time and hence any dynamic changes in the included file will not be reflected. Whereas the jsp:include action does include the file at runtime (on demand) so it guarantees to reflect the changes you do in the included file even after starting the container!