Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Include a file outside the application (war) using jsp include

Tags:

include

jsp

I am using "jsp:include" to include a static file in one of my jsp files. It works fine when the static html file is located inside the application folder. However if its kept outside the application folder it is not included in the JSP file.

Note: I have created a context for the folder where the static file is saved and I m able to view the html file with direct url.

Please help..

like image 205
Pratheeswaran.R Avatar asked May 06 '09 10:05

Pratheeswaran.R


1 Answers

I have solved this problem using the c:import tag.

To define the dynamic URL I have used the bean:define tag. Thank you friends for the suggestions and help.

like image 85
Pratheeswaran.R Avatar answered Nov 15 '22 05:11

Pratheeswaran.R