title: Can I pass a value directly in the MVC pattern?
body: <p>I am studying MVC pattern, which is java jsp model2.</p>
  <p>I got the seq value from the Edit.java file.
  With this seq value, I'm going to write a <code>select * from address where seq=?</code> statement in DAO.</p>
  <p>In this case, which of the following statements should be used for Edit.java?</p>
  <pre><code>AddressDAO dao = new AddressDAO();
  AddressDTO dto = new AddressDTO();
  
  //1
  dto.setSeq(req.getParameter(&quot;seq&quot;));
  dao.getToEdit(dto);
  
  //2
  dao.getToEdit(req.getParameter(&quot;seq&quot;));
  </code></pre>
  <p>I wonder if it is possible to directly pass the seq value, which is method 2, to dao, or give a value to dto and pass dto to dao, which is the correct method. I'm also curious as to why.</p>