How to get the value in java script to JSP

Hi,I have written an onclick function on each row and passing the primary key of the table to the javascript function. I want the value which I have passed to the javascript back in the jsp to delete the particular row. How can I achieve this.Thanks
[270 byte] By [Sowja] at [2007-11-27 8:09:46]
# 1
Put into hidden variables from javascript like, document.getElementById("hidden1").value = your_js_val;have getter/setter for hidden in your action form class,then get it back by instantiating form bean.or, set it in the session and get it back.
skp71a at 2007-7-12 19:52:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thank you for your reply!! Here I am getting the values only into the javascript after I click a particular row in the table. So for the bean and action to get that particular vale I think I have to submit the form and then get the values back because its initially showing null. How do I submit the form and get the value back, so that I can delete particular row?

Sowja at 2007-7-12 19:52:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
to submit the form, onclick of a row call this:document.forms[0].submit();
skp71a at 2007-7-12 19:52:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
That means do I have to submit the form on the onClick() and retrieve the value again and submit the form again to delete.
Sowja at 2007-7-12 19:52:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
it seems so, in your case. I don't know how you wrote your code.
skp71a at 2007-7-12 19:52:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...