/manage/user/userGroupList.action 与/manage/user/userGroupList!viewUserGroupList.action 的区别是什么
知道后面的那句是userGroupList.action中的viewUserGroupList方法,那前面那句话是怎么回事呢?

解决方案 »

  1.   

    前面那句是默认userGrupList这个action中的execute方法
      

  2.   

    前面那句是默认userGrupList这个action中的execute方法  而后面那句是执行自定义的viewUserGroupList方法
    viewUserGroupList是方法名。
    正式通过这种写法使得可以按需要执行相应方法...
      

  3.   

    前边那句是默认执行execute方法,action继承actionSupport。
      

  4.   

    前者默认执行userGrupList.action中的execute()方法 
    而后者执行的是自定义的viewUserGroupList()方法
    其实也可以这么看,比如说我每个action中只做一个处理业务方法,那就可以直接用execute(),默认会执行这个方法的,但action可能会很多;但是若想要action文件少点,可以在一个action中写多个方法,而这在调用时就要给他指明是这个action中的哪个方法了,就比如后者(仅个人看法)