<bean:define id="repMap" name="repMap"/>
- Since there is no 'scope' attribute, so default rules applied by PageContext.findAttribute(
- Thers is also no 'toScope' attribute in <bean:define> tag, the id will be created in 'page' scope as default.
So, This line actually copy an bean instance named 'repMap' from request attribute to this JSP page. The new bean instance is also called 'repMap' in this JSP page, but it is a different object from one in request attribute.
Main Topics
Browse All Topics





by: mrcoffee365Posted on 2007-03-05 at 10:15:46ID: 18656177
bean:define is generally used to define a local variable. I'm not sure what it does for you if you don't give it a value.
et.com/tut orials/Str utsTags/ be an_tags.ht ml
This page has a nice explanation of the different bean declarations you can have in your page:
http://javaboutique.intern