Today, I have encountered some problems, and I thought it was Webwork2. I asked the famous Moxie in the Webwork field for a long time. Later, it was discovered, but in debugging and Moxie exchange, summary The WebWork-related experience is both not very clear before, recorded, and the memo:
1) The order of interceptors is the same as Filterchain. This is written on many documents; but I have been unclear: Params and Model-Driven two interceptors have no advanced? Conclusion Yes: Model-Driven Placed in front is the most correct, otherwise Model-Driven mode cannot be used
2) MODEL's usage problem xiaxin and Moxie documents are different. In View, you should use mod.username or use username? Test it, find it; Do not use Model in View to be the right way; if you use model.username, it is equivalent to using PropertyDriven instead of ModelDriven.
3) The above combination problem
If we put params in front, then you can only use the Property-Driven mode, use model in view. *** is no way to pass the value to the action.