I have a form of exit:
<form action="LogoutServlet" method="post"> <input type="submit" value="Logout" > </form>
But I want to use the reference.
<a href="xxx" ...> </a>instead of form. How do I get it?
You can't use
GET♪ If there is a way to make the shape processor work,
GETParameters, the reference is easy to make:
If the processor cannot be touched, then the form may be invisible and, upon application, the form should be sent:
<form id="logout" action="LogoutServlet" method="post"> <input type="hidden" name="logout" value="submit"> </form> <a href="#" onClick="$('#logout').submit()">Выйти</a>
Or you can take the form completely.