I am using Netbeans and MySql server. I want to add JSP content into an HTML file. How can I include it?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
-
Why does the box-shadow property not apply to a
JSP is a dynamic one. It needs a web container to get executed. Why do you need to include it in a static html page. To my knowledge, if you want to include a jsp page in a html page, then your page is intended to be dynamic. So you have to change that to be a JSP page. Now you can use
This will include your jsp.
You cannot include a JSP to a HTML page.
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):
HTML files are static resources that are served as is, without any kind of interpretation, by the web container.