How to add a JSP file to java application?
<html> <head> <title>Include another page</title> </head> <body> <h2>Here You are including a file,having any application,code or any content..</h2><br/> <[email protected] file="success.jsp" %><br/> <h2>Here You are including a Jsp Page...</h2><br/> <jsp:include page="success.jsp" /> </body> </html>
<[email protected] file=??? %> tag will inject the contents of the named file into the JSP containing the tag.You can say it is just like copy paste.
It is done during the page translation time. In <[email protected] file="success.jsp" %> content of success.jsp is copied into the current page.
Its purpose to reuse JSP content in multiple pages.JSP content affects main page.