In server,I have a bean like this:
@Data
public class TechInfo {
private int shopID;
private String name;
private int experience;
TechnicianTitleInfo technicianTitleInfo;
private String skill;
}
How can I get the request params in Struts2 ?
I've declared a TechInfo in my action, but its value is null after Struts2 parsed it.
The action is like this:
public class AjaxAction{
@Getter @Setter private TechInfo techInfo;
protected void jsonExecute() throws Exception {
//need the techInfo
}
}
The correct parameter format is the one using the Dot Notation:
and so on.