In page 494 HFSJ says attributes send to jsp:include using jsp aram are request parameters and and can be accessed when we are back from the included page whereas tag file attributes have page scope so wont be available outside the included page.But in the topic on jsp:include it says parameters send to include are not available outside the included page.Which is right?
I think you are wrong. It was clearly said that <<jsp : param >> is used to set the parameters in request. so it should be available after include tag also. Please check HFSJ 415 include review...... it says that you can re-set a parameter value that is already there in the request so it clearly says it operates directly on request object. I, my self never used extensively this feature any comments??? -Shivender
That's when I have no choice but pull out the spec :
When doing jsp:include or jsp:forward, the included page or forwarded page will see the original request object, with the original parameters augmented with the new parameters, with new values taking precedence over existing values when applicable. The scope of the new parameters is the jsp:include or jsp:forward call; i.e. in the case of an jsp:include the new parameters (and values) will not apply after the include. This is the same behavior as in the ServletRequest include and forward methods (see Section 8.1.1 in the Servlet 2.4 specification).
Joined: Oct 21, 2005
Santou, Then wahts the difference between attributes to tags and params to include?This is the advantage mentioned for attributes to tags in HFSJ