我如何可以在HTML中包含jsp页面? [英] how can i include jsp page in html?

查看:741
本文介绍了我如何可以在HTML中包含jsp页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Netbeans和MySql服务器。我想将JSP内容添加到HTML文件中。我怎样才能包含它?

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

推荐答案

使HTML文件成为JSP页面,并使用JSP include(静态或动态,你可能想要一个静态包含在这里):

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文件是静态资源,可以按原样提供,不受任何形式的解释。

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

这篇关于我如何可以在HTML中包含jsp页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆