HOW DO I INCLUDE STATIC FILES WITHIN A JSP PAGE?

Awadhendra Tiwari

Total Post:510

Points:2550
Posted by  Awadhendra Tiwari
Java 
 1159  View(s)
Ratings:
Rate this:
  1. Awadhendra Tiwari

    Post:510

    Points:2550
    How do I include static files within a JSP page?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!