The <frameset> tag is used to define a frameset.
The frameset element holds two or more frame elements. Each frame element in itself holds a separate document.
The frameset element decides the number of columns and rows within a frameset.
Understand with Example
This section illustrates you how to use the html tag frameset in jsp. In the
given example, we have used four jsp pages:
The frameset tag holds two or more frames and each frame holds a separate document. By using its attributes rows and columns, you can set the number of rows and columns you want to be in the frameset. In the jsp page frameset.jsp, we have create three frames and using the attribute src, we have display the content of the specified jsp page to the respective frame. The attribute scrolling scrolls the frame. By default its value is true.
Here is the code of frameset.jsp
Here is the code of frame1.jsp
Here is the code of frame2.jsp
Here is the code of frame3.jsp
Output will be displayed as: