This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have one JSP Page with
One Edit Box
Two Submit buttons "Button #1", "Button#2"
If i hit the "Enter" key in keyboard, "Button #1" should fire.
If i keep a cursor pointer in text box, and hit the "Enter" key then "Button #2" should fire.
Can anyone help me different approaches to achieve this solution?