I am generating a table of data from a simple list of objects that I am displaying in a jsp page. Each row has a View hyper link attached to it. When the user clicks on the hyper link I need to send them to another controller (hooked up via a bean) to display more detailed information. I am trying to pass a unique id but in the controller that handles the request, when I try to retrieve the uniqueId via request.getParameter("uniqueId") it is always null.
So how should I handle requestParameter's in Spring MVC?
Update:
An example from my jsp:
<c:forEach var="file" items="${confirmationFiles}">
<tr>
<td>${file.batchId}</td>
<td>${file.runDate}</td>
<td>${file.customerId}</td>
<td>${file.userName}</td>
<td><a href="view-detail.do?batchId=${file.batchId}">View</a></td>
</tr>
</c:forEach>
in my servlet configuration, I have:
<bean name="/view-detail.do"
class="ViewDetailController">
</bean>
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass"
value="org.springframework.web.servlet.view.JstlView" />
<property name="prefix" value="/jsp/" />
<property name="suffix" value=".jsp" />
</bean>