Problems caused by Struts configuration

xiaoxiao2021-03-06  43

Today, I encountered a typical configuration problem. Nausea is half a day.

The phenomenon is as follows: Configuring Action1 / FormBean1, the result is an instance of com.formean2 in an action. But configured com.formean1.

Checked the Request, no problem. This is Key is FormBean1, but Obj is com.formean2.

Later, I found out that it was originally defined for FormBean1 in the config file. One is com.formbean2, once is com.formean1.

The configuration error is simple, but in the analysis, I laminated an error. I used to know that there is a forma in the Request, but I always think that this key is the class name of the class, which is faulty, is the name of FORMBEAN in config. The result caused the analysis direction wrong.

转载请注明原文地址:https://www.9cbs.com/read-55521.html

New Post(0)