Line1:
public ModelAndView viewCustomerDetails(@RequestParam("custId") Integer customerId, @RequestParam("categoryName") String categoryName, HttpServletRequest request) throws BusinessException{
Line2:
public ModelAndView viewCustomerDetails(@RequestMapping("custId") Integer customerId, @RequestMapping("categoryName") String categoryName, HttpServletRequest request) throws BusinessException{
i am going thorough my project code and having some confusion in @RequestParam and @RequestMapping some times i found @RequestParam and some times @RequestMapping. in my understanding both will assign the value of custId to customerId data member.
some part of my jsp file:
<form:input mandatory="true" id="CustNameTxt" path="custName" cssClass="txtfield controlWidth" readonly="false" />
for better understanding of my problem i have done editting in Line2