Skip to content
Advertisement

Thymeleaf: how to get URL attribute value

I can’t find any solution for getting attribute from URL using Thymeleaf. For example, for URL:

JavaScript

I need to get “error” attribute value. Also I’m using SpringMVC, if it could be helpful.

Advertisement

Answer

After some investigation I found that it was Spring EL issue actually. So complete answer with null checking is:

JavaScript
Advertisement