struts2动态结果集有关问题

struts2动态结果集问题
struts.xml中配置如下:
<package name="f" namespace="/c" extends="struts-default">
  <action name="r3" class="action.IndexAction1">
  <result>${r}</result>  
  </action>
</package>


Action代码如下:
package action;

import com.opensymphony.xwork2.ActionSupport;
public class IndexAction1 extends ActionSupport {
private int type;
private String r;
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public void setR(String r) {
this.r = r;
}
public String getR() {
return r;
}
public String execute(){
if(type==1)r="/index.jsp";
else if(type==2)r="/r2.jsp";
else r="/r4.jsp";
return "success";
}

}
当我访问:http://localhost:8080/Struts2_3/c/r3?type=1时出错,错误信息:
HTTP Status 404 - /Struts2_3/c/
type Status report
message /Struts2_3/c/
description The requested resource (/Struts2_3/c/) is not available.

我把struts.xml中的<result>${r}</result>改成<result>/index.jsp</result> 就可以正常访问了,为什么?

------解决方案--------------------
顶一下!!