控制台报错如下:
Could not find action or result
No result defined for action example.HelloWorld and result input - action -
此时如果添加result,name等于input则不再报错,但是action的方法不执行;
后经过多次调试才明白,原来是在httpclient的method中赋值时,将int类型的值,赋予了一个string类型的(非数值类型),导致的问题。
struts2提示的不友好,可见一斑