Menu

verifyForward doesn't expect module

Patrick
2008-02-28
2013-04-25
  • Patrick

    Patrick - 2008-02-28

    I'm getting the following error when running verifyForward("UserSwitch") and the struts config file has the following global forward defined...
    <forward name="UserSwitch" module="/merchantaccount" path="/MerchantAccountFunctionalUserSwitchLoad.do"/>

    Error is...
    expecting '/MerchantAccountFunctionalUserSwitchLoad.do' but received '/merchantaccount/MerchantAccountFunctionalUserSwitchLoad.do'

    Is there a way to get verifyForward() to include the module in it's expected path?

    Thanks

     
    • bxl

      bxl - 2008-02-28

      try verifyForwardPath() instead?

       
      • Patrick

        Patrick - 2008-02-28

        That worked. Thanks.

        I was wanting to use verifyForward() so I wouldn't have a UnitTest with  a hard coded value thats needs updated if the path changed in my struts config file. Oh well. Thanks again.

         
    • bxl

      bxl - 2008-02-28

      right, that would be the optimal way to go... if it worked :)

       

Log in to post a comment.