how can i include jsp page in html?

后端 未结 2 1669
执笔经年
执笔经年 2020-12-19 12:46

I am using Netbeans and MySql server. I want to add JSP content into an HTML file. How can I include it?

2条回答
  •  鱼传尺愫
    2020-12-19 13:15

    Make the HTML file a JSP page, and use a JSP include (static or dynamic, depending on what you want, but you probably want a static include here):

    <%@include file="theJspToInclude.jsp" %>
    

    HTML files are static resources that are served as is, without any kind of interpretation, by the web container.

提交回复
热议问题