i am working on a spring mvc web application and for the frontend i am using JSP files. To great dynamic pages i am using <c:import> width different container/child files and defined some basic css in the top-level container. To create a clean html output i removed the <html> and <head> tags from my child files, but without a <head> tag i am not able to define a different or more refined css file for my child pages.
What is the best way to implement a different css for child pages?
thx
PS: the only way i can imagine is to use javascript and load a css file to the head tag.
Another option that doesn’t require multiple child css files is to append a class or ID to your
bodytag.Then, you can override properties like this (stupid example):