
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/> <%@include file="success.jsp" %><br/> <h2>Here You are including a Jsp Page...</h2><br/> <jsp:include page="success.jsp" /> </body> </html>

<%@include 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 <%@include 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.
In
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.