<action name="home_*" class="homeAction" method="{1}">
<result name="{1}">/WEB-INF/jsp/home/{1}.jsp</result>
</action>
@Controller
public class HomeAction {
/**
* 跳转到首页面
*/
public String index(){
return "index";
}
/**
* 跳转到top.jsp页面
*/
public String top(){
return "top";
}
/**
* 跳转到left.jsp页面
*/
public String left(){
return "left";
}
/**
* 跳转到right.jsp页面
*/
public String right(){
return "right";
}
/**
* 跳转到bottom.jsp页面
*/
public String bottom(){
return "bottom";
}
}