Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2501

org.apache.struts.action.Action.execute should not return null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.2.7
    • None
    • Extras
    • None
    • Operating System: other
      Platform: Other
    • 35392

    Description

      original:
      public ActionForward execute(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception

      { return null; }

      //bad way!!!

      if the subclass of Action does not override excute method (eg: wrong name bug),
      this problem is hard to find out!

      This method must be override by its subclass,so the way fix the problem is make
      it throw Exception

      Attachments

        Activity

          People

            Unassigned Unassigned
            qxo qxo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: