Hi every body
I want to ask 2 questions
1-----If we have following lines in a
JSP file
<jsp:useBean id="hello" class="SomeClass" scope="request"/>
<jsp:useBean id="hello" class="SomeClass" scope="application"/>
Is in 2nd tag new bean created?Please give some discription if convineant .What happen if scope attribute's value in both places are interchanged?
2-----It has been written in every book that if there is a bean object with same scope and the same id bean wont be created but existing bean instance will be assigned to same id.
Well my question is that(knowing the fact that bean id's becomes avaliable as local variable in _jspService() method ) if 2 use bean tags in the same page have same id but different scope then will 2 bean objects will be created and thus availlable in the same page by 2 local variables of same name(is it not illegal)