title: Spring MVC - Throws exception when the int value of ModelAttribute is null
body: <p>I'm building an web application using Spring 3.0 MVC.</p>
  
  <p>I have a method which has prototype below.</p>
  
  <pre><code>@RequestMapping(value = "/blahblah/blah.do", method=RequestMethod.GET) 
  public void searchData(@RequestParam(value="uniqOid", required=false) String uniqOid, @ModelAttribute("MasterVo") MasterVo searchVo,
            ModelMap model, HttpServletResponse response, HttpServletRequest request)
  </code></pre>
  
  <p>The problem is that, the view (jsp) contains <code>input</code>s that matches to <code>searchVo(ModelAttribute)</code>.
  When the int or long value of <code>searchVo</code> didn't come from the jsp, the server throws 404 page not found exception.</p>
  
  <p>If the type of value is "String", it has no problem.</p>
  
  <p>In my opinion, it is the problem of type casting.</p>
  
  <p>How could I solve this problem, and which part of the server code that I have to check?</p>
  
  <p>Thanks in advance.</p>