ex4_7.txt

来自「j2ee core design patterns」· 文本 代码 · 共 11 行

TXT
11
字号
Example 4.7 Tight Coupling Between a Domain Object and HttpServletRequest Object

/** The following excerpt shows a domain object that is too tightly coupled with HttpServletRequest **/
public class Customer
{ 
  public Customer ( HttpServletRequest request )
  { 
       firstName = request.getParameter("firstname"); 
       lastName = request.getParameter("lastname ");
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?