I’m working on a spring mvc project. I need to change the style of my menu items when I’m on a particular page. The css is done. But i still need a way to check on which page I am.
What is the easiest way to do this. All solutions are appreciated.
,
thank you
You can integrate Apache Tiles into your Spring MVC project (exmple here) and pass path to css needed in
tiles.xml.Alternatively you can send this path to your JSP page in JavaBean, but it is less declarative and requires accurate manipulating of beans.