sun example Model datatype

hi

i checked some example on the sun web site

http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/web-tier/web-tier5.html#1078777

for Example 4.7, we can see

// Action.java:

publicabstractclass Action{

protected Model model;

public Action(Model model){ this.model = model;}

publicabstract String getName();

publicabstract Object perform(HttpServletRequest req);

};

// CreateUserAction.java:

publicclass CreateUserActionextends Action{

public CreateUserAction(Model model){

super(model);

}

public String getName(){return"createUser";}

public Object perform(HttpServletRequest req){

return model.createUser(req.getAttribute("user"),

req.getAttribute("pass"));

}

}

any idea what is: Model?

thank

[1932 byte] By [laboiteaproga] at [2007-11-26 13:13:23]
# 1
model is datanull
reflex2javaa at 2007-7-7 17:31:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
more detail shoud be appreciate......model is data, mean nothing
laboiteaproga at 2007-7-7 17:31:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Read more about MVC and MODEL 2 arch.
reflex2javaa at 2007-7-7 17:31:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
if i posted the link for the mvc pattern, it's maybe because i read it and i don't understand what is Model....sun don't explain it.
laboiteaproga at 2007-7-7 17:31:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
I guess the sample is something like a struts implementation.
reflex2javaa at 2007-7-7 17:31:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
maybe... maybe not...somebody have other idea?
laboiteaproga at 2007-7-7 17:31:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
that nice that sun write incomplete documentation to help people
laboiteaproga at 2007-7-7 17:31:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...