I am thinking of creating a forum and i am using jsp for this ...basically i wanted that whenever someone posts a question and subject ,the subject should appear in a table with his name and whenever someone is interested in the question by clicking that question he should be able to reach that specific question(as we do in this forum).but i am not able to do so ..since i am not able to get the logic of retrieving the data from an html table ...pls somebody suggest me.. thanxs in advance
我正在考虑创建一个论坛,我正在使用jsp ...基本上我希望每当有人发布一个问题和主题时,主题应该出现在一个带有他的名字的表格中,并且当有人对这个问题感兴趣时,点击那个问题他应该能够达到那个具体问题(正如我们在这个论坛中所做的那样)。但我无法这样做..因为我无法从html表中获取数据的逻辑...请参阅有人建议我.. thanxs提前
1 个解决方案
#1
0
First of all use Jquery to retrieve the values of the table elements.Then use jquery again to set the values retrieved to a hidden field within a form and then send this form to the appropriate action.
首先使用Jquery检索表元素的值。然后再次使用jquery将检索到的值设置为表单中的隐藏字段,然后将此表单发送到相应的操作。
This is one of the easiest ways to do it using hidden field
这是使用隐藏字段执行此操作的最简单方法之一
#1
0
First of all use Jquery to retrieve the values of the table elements.Then use jquery again to set the values retrieved to a hidden field within a form and then send this form to the appropriate action.
首先使用Jquery检索表元素的值。然后再次使用jquery将检索到的值设置为表单中的隐藏字段,然后将此表单发送到相应的操作。
This is one of the easiest ways to do it using hidden field
这是使用隐藏字段执行此操作的最简单方法之一