title: JPA logout from web service
body: <p>I'm creating webservice on springboot and using JPA. I wanted to add logout button to my page but it do not working.</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;!DOCTYPE html&gt;
  &lt;%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%&gt;
  &lt;%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&gt;
  &lt;c:set var="path" value="${pageContext.request.contextPath}"&gt;&lt;/c:set&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="ISO-8859-1"&gt;
  &lt;title&gt;Hello&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;c:if test="${pageContext.request.userPrincipal.name !=null }"&gt;
      &lt;form method="post" id="LogoutForm" action="${path}/logout"&gt;
          &lt;input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/&gt;
      &lt;/form&gt;
      &lt;p&gt;Welcome ${pageContext.request.userPrincipal.name} | &lt;a onclick="document.forms['logoutForm'].submit()"&gt;Logout&lt;/a&gt;&lt;/p&gt;
      &lt;h1&gt;${message}&lt;/h1&gt;
      &lt;p&gt;&lt;a href="${path}/user/list"&gt;User list&lt;/a&gt;&lt;/p&gt;
      &lt;p&gt;&lt;a href="${path}/user/form"&gt;Add User&lt;/a&gt;&lt;/p&gt;
      &lt;p&gt;&lt;a href="${path}/address/list"&gt;Address list&lt;/a&gt;&lt;/p&gt;
      &lt;p&gt;&lt;a href="${path}/address/form"&gt;Add Address&lt;/a&gt;&lt;/p&gt;
  &lt;/c:if&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>It is not clickable.</p>