[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: scope=request and included files



>When I define a bean to be of scope request, should that now be available to
>included jsps? This is a little confusing since I don't think the spec
>clearly defines scope for included jsps with regard to request scope.
>
>For example,
>
>---file a.jsp
>usebean mybean scope=request
>include page b.jsp
>
>---file b.jsp
>I want to refer to the mybean in here. Do I need another usebean with
>scope=request here?

That depends... :-)

If you use the include directive the included file is textual included
so mybean can be directly used.
If you use jsp:include tag the output of the separate jsp servlet b.jsp 
is included and you have to add a usebean tag in b.jsp.

>
>
>Thanks for any clarification on this.
>
>Ken.
>
>

Ciao,
	Carsten Heyl
alph@gjt.org