springmvc passed three parameters: a reference background Previous TRANSFERRED

Before we learn three ways to pass the Senate reception later stage,

  1, parameters, parameter passing

  2, the model of mass participation

  3, HttpServletRequest object by reference

Backstage pass forward units also use the model parameters mass participation and mass participation request.

Still writing before the project-based, all else the same, here only part of the controller changes:

1.model parameter passing

Display data in jsp page:

Run the test results are as follows:

2.RequestServlet object by reference

Operating results as above

3.map object by reference

Use the map object parameter passing mode with the first model the same way as the model parameter passing, here is not to write a fine.

 

Guess you like

Origin www.cnblogs.com/Zs-book1/p/11096983.html