Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can i include jsp page in html?

Tags:

html

jsp

netbeans

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

like image 927
Parth Joshi Avatar asked Apr 07 '13 17:04

Parth Joshi


1 Answers

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.

like image 86
JB Nizet Avatar answered Oct 22 '22 08:10

JB Nizet