How to include static files in a JSP page?



How to include static files in a JSP page?..

Answer / Rajendra Singh Rana

To include static files like CSS, images, or JavaScript in a JSP page, you can use the `<%@ include file="path/to/file" %>` directive. Alternatively, you can use the `<img>`, `<link>`, and `<script>` tags to directly reference the files.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JSP Interview Questions

Is jsp used?

1 Answers  


Why is it not recommended to use script elements in jsp?

1 Answers  


Define Static Block.

1 Answers  


How to create menu in jsp with example?

1 Answers  


What is jsp and its features?

1 Answers  


What does it mean when tags or attributes are said to be deprecated?

1 Answers  


Why session is used?

1 Answers  


Q : In session created by server with client(browser) How can server find that request coming is belong to new session OR belong to session that is timeout.

4 Answers   HCL,


How can we avoid direct access of jsp pages from client browser?

1 Answers  


Differentiate between jsp scriptlet tag and declaration tag.

1 Answers  


List all tags that are provided in jstl?

1 Answers  


How do I use comments within a jsp page?

1 Answers  


Categories