ライン1:
public ModelAndView viewCustomerDetails(@RequestParam("custId") Integer customerId, @RequestParam("categoryName") String categoryName, HttpServletRequest request) throws BusinessException{
2行目:
public ModelAndView viewCustomerDetails(@RequestMapping("custId") Integer customerId, @RequestMapping("categoryName") String categoryName, HttpServletRequest request) throws BusinessException{
私は自分のプロジェクトコードを徹底的に調べており、いくつかの混乱が@RequestParam
あり@RequestMapping
、時には見つけ@RequestParam
たり、時には混乱したりしてい@RequestMapping
ます。custId
私の理解では、両方とも値をcustomerId
データメンバーに割り当てます。
私のjspファイルの一部:
<form:input mandatory="true" id="CustNameTxt" path="custName" cssClass="txtfield controlWidth" readonly="false" />
私の問題をよりよく理解するために、Line2で編集を行いました