JSP Question:

How do I include static files within a JSP page?

Tweet Share WhatsApp

Answer:

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.

Download Java JSP Programming PDF Read All 26 Java JSP Programming Questions
Previous QuestionNext Question
What are stored procedures? How is it useful? Why does JComponent have add() and remove() methods but Component does not?