Need some help on the following.
I have a project overview jsp which displays project activity and a view comments button for each activity belonging to the project:
What I want to do is extract the activity id according to which view comments button the user has pressed. I can do this with checkboxes by getting an array of parameter values but with submit buttons it just seems to take the most recent activity id. I've played around with hidden fields etc but cant get it to work.
Thanks in advance,
There may be several activity updates on the page each with different IDs. The user can click 'view comments' on each one. I want to be able to get the appropriate ID on the activity they have selected in my servlet by getting the parameter. At the moment if I try to get the ID it just gives me the last activity ID and not the specific one they have selected to view the comments on.
And this in the servlet...
However when I introduce a hidden field i.e....
I have the problem where it only recognises the last activity id.
Here is the solution if anyone has a similar problem in the future: