We have a JSP page and it has a table like below
We load the data into this table using a JDBC Query. Now, please consider the below.
- Each row display the data of a one single person.
- Each person has a unique ID called
idPerson
Now, we need to track which row contains the data belongs to which person. To do that, we have to "attach" the idPerson
to the rows somehow. We found the below way of doing that.
- Create a "hidden text box" for each row and set
idPerson
into itsvalue
orid
attribute.
However not sure how secure this method is, or whether someone can simply edit the HTML from browser and hack in.
What is the recommended way of doing this?