Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting button name

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to know which key has been pressed while sending request to a servlet.
Like GO,REFRESH or BACKSPACE (especially the BACKSPACE).
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sitaram,
No. You only know that the request has been submitted.

You can identify a backspace/reload case by putting a value in the session when the page is first loaded and seeing if it is already there. This is the "token" approach.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic