I’m trying to use jQuery with JSP to display a table where in each row there are three possible actions: Up, Down, Refresh. I want to display an image for each even next to each other and be able to click the buttons in each row to perform the requested operation (up/down/refresh) as defined in my Java code. So it will be a different action/function executed for each button, and each row. For example: Row 1 actions would be: modelUp, modelDown, modelRefresh; row 2 actions would be: productionUp, productionDown, productionRefresh; … etc.
The problem is I don’t know jQuery and have little to no experience with JSP. I’ve been Google’ing, but it hasn’t gotten me very far.
Can someone help me out? Thanks.
Ok, I pretty much solved most of it this way.
Here’s my JSP (this is only one row of the table, but the rest follow the same scheme):
‘code
‘
Here’s my jQuery/Javascript:
‘code
And finally here’s my Java:
‘
‘