By using <c: import>
, the contents of the file specified in the url attribute can be read at that location.
Then, if you want to create a frame on the outside and display another page inside, create app.jsp (outer jsp) and
Write $ {param.content}
in the code (yellow frame in the image).
The page you want to display will be in the place where you wrote $ {param.content}
.
On the page (jsp) for those who enter
By writing <c: param name =" content ">
as surrounded by the yellow frame in the image above, the part surrounded by yellow is specified as the part you want to put inside.
This time, the page is specified by unifying with content such as $ {param.content}
in the upper image and <c: param name =" content ">
in the lower image.
Recommended Posts