No result defined for action and result

后端 未结 2 1782
逝去的感伤
逝去的感伤 2021-01-15 15:27

Default result is not rendering using result for my package alone. Flow goes to my n0result method then It throws Exception.

Please correct

2条回答
  •  清歌不尽
    2021-01-15 16:08

    Nothing wrong with the struts configuration. What is wrong is that "noresult" result is not found in the action configuration. You have either configure a result or return a result code that you have in the action config such as SUCCESS for example.

    public String noresult() throws Exception {         
        System.out.println("Hello How are you noresult() method got called.....");
        setMessage("noresult");
        return Action.SUCCESS;
    }
    

提交回复
热议问题