In a
jsp ,I have a table with a few rows .The user need to select a row and click on 'Go' button placed below the table ,to go to next jsp.
If the user doesn't select a row and clicks 'Go' button, the user should be promped with a message saying "Please select a row to proceed!" and stay in the same page.
How to achieve this? On click of that button I tried calling a javascript function which has the alert for the above message but the control would go from view to Action class.
What should be done here to stay in same page?