Home > DeveloperSection > Interviews > How do I include static files within a JSP page?

Posted on    May-21-2011 9:10 AM

 Java Java 
Ratings:
 1 Answer(s)
  985  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Points:2550
Posted on    May-21-2011 12:00 AM

Static resources should always be included using the JSP include directive. This way, the inclusion is performed just once during the translation phase. Do note that you should always supply a relative URL for the file attribute. Although you can also include static resources using the action, this is not advisable as the inclusion is then performed for each and every request.

Don't want to miss updates? Please click the below button!

Follow MindStick