How to emulate nested:root from Struts 1 in Struts 2?

核能气质少年 提交于 2019-11-29 16:36:57

All nested tags and all Struts1 tags should be removed/replaced with equivalent Struts2 tags.

Nested tags not needed in Struts2 because it's powered with OGNL. Using OGNL expressions and s:include allows to replace nested tags.

If it's not enough to render content with s:include you can use s:action but it's heavy and it recreates a valueStack when this tag executes, so it's rarely used, but custom tags or custom components that include Fremarker or Velocity templates can significantly change the rendering time and allows customization.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!