How to log out using spring-security? -


i applying spring-security on struts2 application, works when in address following , click on logout runs following error,

 localhost/myproject/cons 

error

java.lang.nosuchmethodexception: com.myproject.controller.cons.j_spring_security_logout() 

i can logout when in first page (index page) of application. reckon problem login link not sure how solve issue.

security.xml

<logout logout-success-url="/index.jsp"/> 

logout link

 <a href="<c:url value="j_spring_security_logout" />" > logout</a> 

use

<c:url value="/j_spring_security_logout" /> 

Comments