jsp include tag vs struts include action?
struts include 操作包含由参数属性指定的上下文相关 URI。 jsp include 标签也能做到这一点。那么,普通的jsp include tag ie和struts include action有什么区别呢?
struts include action include the context-relative URI specified by the parameter attribute. and jsp include tag also does that. So,whats the difference between normal jsp include tag i.e and struts include action?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
直接来自文档:
表单验证、授权等。这在包含 URI 之前(或之后,对于异常处理)可能很有用。
但如果您从头开始启动 Struts 应用程序,则不必使用它。当您已经有一个 servlet 并希望将其包含在 STruts 应用程序中而不使用 Struts 重写它时,它非常有用。
Right from the documentation:
Struts is a front controller, that handles form bean population, locale detection, exception handling, form validation, authorization, etc. This might be useful to do before including the URI (or after, for exception handling).
But if you start a Struts application from scratch, you shouldn't have to use it. It's useful when you already have a servlet and want to include it inside a STruts application without rewriting it using Struts.