How to add css to all jsps in java web project. Is it possible using web.xml ?

Recommended Answers

All 2 Replies

use <link> tag for adding css to your web page
i think there is no specific configuration to the css in web.xml
because web.xml always talks about server components like servlets and jsps, not anything related to any design issues

i think you can add css by adding following JSP tag

<style type="text/css">
<%@ include file="../../css/any.css" %>

or you can put .css file in same path of jsp

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.