开发者

why use<bean:include instead of <jsp:include in struts?

开发者 https://www.devze.com 2023-01-31 02:31 出处:网络
why use<bean:include instead of <jsp:inc开发者_C百科lude in struts?from the documentation for bean:include

why use<bean:include instead of <jsp:inc开发者_C百科lude in struts?


from the documentation for bean:include

Perform an internal dispatch to the specified application component (or external URL) and make the response data from that request available as a bean of type String. This tag has a function similar to that of the standard jsp:include tag, except that the response data is stored in a page scope attribute instead of being written to the output stream. If the current request is part of a session, the generated request for the include will also include the session identifier (and thus be part of the same session).

first hit on google


bean:include works almost like jsp:include except that the result is stored in the page scope. This means that your code on the current page can access the results and manipulate it. See this page.

0

精彩评论

暂无评论...
验证码 换一张
取 消