Deleting row from display table in JSP

hi experts,
I am using display table to display information which i am getting from session.
The row in Display Table contains 5 columns for name,ssn,dob,case type and a delete button.
when the user clicks on delete button, the entire row should be deleted from the ArrayList ( which is partyList below). Here is the code
<display:table  name="partyList" scope="session">

<display:column   title="Name" property="name"/></display:column>
<display:column   title="SSN" property="ssn"/></display:column>
<display:column   title="DOB" property="dob"/></display:column>
<display:column   title="Case Type" property="casetype"/></display:column>
<display:column><input type="image" onclick="javascript:popitup();" src="../images/button/delete.gif" alt="Remove" /></display:column>

</display:table>

right now popitup() contains no code. I am not even sure if i should be using javascript for this.

Any ideas how i could proceed on this.
thank you,
J
LVL 10
jaggernatAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mick BarryJava DeveloperCommented:
you should be using javascript
you should be sending a request to the server and deleting the row from the database on the server
jaggernatAuthor Commented:
i am not using any database right now. the information in coming into the jsp Display Table from the Form bean(which is set in session).

could some one please help me out with the code in Java script

thanks,
j
Mick BarryJava DeveloperCommented:
the actual data for the table is on the server so you need to send a request to the server to delete the row.
You can't delete it with javascript
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

jaggernatAuthor Commented:
yeah, i thought so too

I am assuming i have to write some logic in my action class to delete the row when the delete  button is clicked.
<a href="/caseManagement.do?method=deleteRow">Delete.gif</a>

anyidea what shoule be the code in the method deleteRow

thanks


Mick BarryJava DeveloperCommented:
depends on how you're table data is stored on the server
nhagiaubungbuCommented:
I think Java Script can not do it.
<<< (QUOTED): I am assuming i have to write some logic in my action class to delete the row when the delete  button is clicked.
<a href="/caseManagement.do?method=deleteRow">Delete.gif</a>

anyidea what shoule be the code in the method deleteRow >>>
To do this, you must send the index of the clicked row to the method. In the method, just simply delete that row in the ArrayList, and then reload the page.
That's all

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.