action报错:No result defined for action and result error,该如何解决

   阅读
action报错:No result defined for action and result error
1.功能说明:
该功能是将txt乱码文件转换成txt正常文件。

2.代码如下:
a.


b.


c.


3.错误说明
当代码运行到a图(codeConversion方法)中的new Test(....)时程序报错,错误信息为:


------解决方案--------------------
放到环境看看。
------解决方案--------------------

------解决方案--------------------
a是一个action 需通过request提交测试
main测试不行 除非不继承action
------解决方案--------------------
引用:
Quote: 引用:

struts单元测试不是这样测的,你要在容器中测才有哪个环境。部署到tomcat里测试。


额 什么意思。。。。
没有tomcat吗,发布到tomcat下,通过浏览器测试
------解决方案--------------------
有有参构造函数就要把无参构造函数写上。
阅读