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

have initDataSources() throw SQLException

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0 Beta 1
    • Fix Version/s: 1.0.0
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Sun
    • Bugzilla Id:
      1672

      Description

      I'm currently overloading initDataSources() from ActionServlet, and I've
      noticed it doesn't throw a ServletException. A lot of the other initXXX()
      methods do, but initDataSources() catches the SQLException and continues on.

      Can we include in the method signature for initDataSources() ServletException,
      or should I overload something later in the call chain, like initOther() or
      initServlet().

      Or better yet, have another method, that has an empty implementation and call
      it right at the end of the call chain, and call it initClient() (initOther has
      already been taken).

        Attachments

          Activity

            People

            • Assignee:
              craigmcc Craig R. McClanahan
              Reporter:
              grumpy@cyber4.org Jim Richards
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: