Call GET method by not using the <form> html tag
<p>I am curious to know whether there is a way to call a GET method without having to use the <code>&lt;form&gt;</code> HTML tag. I just want a button that calls my <code>doGet()</code> servlet method when it is clicked. It is not worth creating an entire form if I will not send any data, I guess.
I was thinking of something like this: <code>&lt;button method="get" action="MyServlet"&gt;</code>. Sorry, I am currently learning Java Web Development and HTML, so this question might sound stupid at first</p>