Spring3.0。如何将请求参数绑定到特定的命令对象。?(通过某种方法使用。)

Spring3.0。如何将请求参数绑定到特定的命令对象。?(通过某种方法使用。),spring,command,bind,Spring,Command,Bind,像这样的 //我不想这样做 public String someControllerMethod ( @ModelAttribute("someCommand") SomeCommand command ){ <-- dont want. command.getValue(); .. } protected String superControllerMethod( HttpServletRequest request ){ BaseComman

像这样的

//我不想这样做

public String someControllerMethod
      ( @ModelAttribute("someCommand") SomeCommand command ){  <-- dont want.

    command.getValue();
    ..
}
protected String superControllerMethod( HttpServletRequest request ){

    BaseCommand childCommand=getChildCommand();
    xxx.bind(request, childCommand);    <-- i need this.**
    doChildJob(childCommand);   //<- it is override by child controller.
}
公共字符串someControllerMethod

(@modeldattribute(“someCommand”)someCommand{你说的“command”是什么意思。绑定时你想做什么?对不起,它是指“command模式”中使用的对象。它能够绑定http请求中的参数。我修改了问题。公共字符串someControllerMethod(@modeldattribute someCommand)