Only to study servlets, I found a task: the client presses a button, the server displays text to him. If, for example, a client has pressed a button 5 times, he will get 5 lines of text. I do not know how to implement.

  • One click = one text? - Flippy

1 answer 1

int counter; void btnClick(){ counter++; int i = counter; while(i > 0){ print("text"); i--; } } 
  • How to assign a button to a method? - mi.mo