Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-1568

TokenAction's doInput method don't work?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.2
    • Example Applications
    • None
    • WindowsXP/Tomcat5.5.17/Jre1.5.0_17

    Description

      In Struts Example-showcase, i found that the token example does not work well: in struts-token.xml, the tokenPrepare is defined as <action name="tokenPrepare!*" class="...TokenAction" method="

      {1}

      "> ... <result name="input">example1.jsp</result> </action>; and in token/index.jsp, the link is <a href="tokenPrepare!input.action">...</a>; and in TokenAction class, defined method is execute and doInput; and in Dispatcher class, the method got from mapping is input.
      So, the defined method doInput does not work, but the worked method is input.
      I override the input method as:
      public String input() throws Exception {
      return doInput();
      }

      Attachments

        Activity

          People

            mrdon Donald J. Brown
            tom_lt tom liu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: