`
cnyangqi
  • 浏览: 110101 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

4.25

    博客分类:
  • Java
JSP 
阅读更多
forward 服务器端跳转 url地址不变
redirect 页面重定向

1,
return SUCCESS; 页面跳转到表单定义的action属性

2,
@Results({ @Result(name = "reload", location = "ecwuum04.action", type = "redirect") })
return "reload"; 页面重定向到指定的action

3,
return "addd"; 任意字符
页面url更改为表单定义的action属性
页面调到了同目录中的action名字+"-addd".jsp页面
如:ecwuum04-addd.jsp

4,
${}是EL语言的 %{}这样的形式是ognl表过式语言的,在struts2的标签内部,使用%{}这样的形式,在标签外部可以使用${}EL语言的方式。如果在struts2的标签内部使用${}这样的方式,会出现以下的错误提示:
According to TLD or attribute directive in tag file, attribute value does not accept any expressions
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics