1. Use request.getParameter(); the premise is that there is a request in the method
2. 对象 public String add(Predection predection){
Here you can use the prediction object to accept the parameters of the page (provided that the parameters of the page are all attributes in this object)
}
3. You can set and get him by privatizing the page parameters
private String text;
private String name;
Then give him the set and get methods