小弟初学Struts,想实现这个功能,当几处都要调用某个action的同个方法,且又要求执行完后跳转到不同的jsp页面,如何通过定义一次action实现?例如action接受到的标识符flag=1,则return "a",flag=2,则return "b",struts配置文件我是这么写的:<action name="removeStudent" class="removeStudentAction">
  <result name="a" >student.jsp</result>
  <result name="b" > teacher.jsp</result>
  <result name="error"> error.jsp</result>
</action>这样做会说识别不了a,b结果集,请问应该如何实现?感激不尽!