How to Run JSP in iFrame

An HTML iframe lets you insert a page within the main HTML page. You can add a JSP page within the iframe's source, so JSP runs in the iframe, but does not run on the main HTML page container. This type of programming is used when programmers need to frame affiliate pages or pages on other servers.

Instructions

    • 1

      Right-click the HTML file, and click "Open With." Click the HTML editor you want to use to insert the JSP iframe.

    • 2

      Click the section of your page where you want the JSP page to display. Add the following code to the page:

      <iframe src="mypage.jsp"></iframe>

      Replace "mypage.jsp" with the JSP page you want to run in the iframe.

    • 3

      Save the changes and open the HTML page in your default browser. Review the iframe location and verify it runs properly in the HTML page.

Related Searches:

References

Comments

Related Ads

Featured