OK, so let's suppose I have three selects generated on page load, thus populated with data. Two of them are hidden by default. What happens if I don't click "Add" link and submit the form? I believe the hidden selects are submitted too. But at the
servlet logic I need to distinguish them somehow.
For example:
Select 1 (visible)
- attribute 1
- attribute 2 (selected by user)
- attribute 3
Select 2 (hidden)
- attribute 1 (selected by default)
- attribute 2
- attribute 3
At the servlet code, how do I know that Select 1 was selected by user and Select 2 wasn't even visible, so it does not need processing?