the following code gives me two values. Either 97 or 12.
<form:input path="revRecov[${loop.index}].trkType" />
When it is 97 I want to use a label package and below the label I will be showing 4 rows.
When it is 12, I want to use a label Pallet and below the label I will be showing 4 rows.
I will be showing both in the same screen at the same time.
Any suggestion on how to use it in a JSP is greatly appreciated.
Instead of using
${loop.index}I used 0 or 1. In this case as we are having only 2 rows, so we can pass the index directly instead of looping through.