I am having trouble displaying a logout link in a JSP page only if the user is authenticated. Here is the exception I have at this line of the JSP page:
but the easiest way is just to enable expressions in your configuration, and one will be added for you. This only means that you have to use expressions within that block, not in Java code such as method @Secured annotations.