You can pass parameters to the included resource.
The included resource has the request/response object of the including resource. Also you can pass in other parameters, but as far as i know, they can only be name/value
string parameters.
Check this post out (my posts are at the bottom)
http://www.javaranch.com/ubb/Forum7/HTML/004785.html the part that would interest you is in my last post, where I (painfully) describe that something that is statically included can still contain dynamic content. Or.. you can dynamically include both static and dynamic content.
However, the catch being... is your
servlet runner smart enough to know that when jasper (the JSP compiler) is going out to fetch the jsp to be 'dynamically included'... will it check to see if THIS resource needs to be recompiled? In other words, do you need to access the included resource individually to enable the servlet runner's 'smart' checking of "has this changed or not". I would hope it would do the dynamic include properly (ie: if you change the included file, it would pick up those changes), but I admit I've never tried it.
Hope that helped.
[This message has been edited by Mike Curwen (edited August 25, 2001).]