you can create a bean instance by using the
scriptlet but the advantage you get over
useBean tag is the scope of the bean.
If i remember correctly , the difference between the
scopes are,
session - life time is equvalent to session expire time
(which is configurable).
request - for that particular request
application - for the whole application
hope it helps,
with regards,
rathna.
Rakesh Bhat wrote:
> > Hi pals,
>
> I have 2 basic questions w.r.t jsp.
>
> 1)What is the use of doing
>
> <jsp:useBean .............>
>
> can't i directly create an instance of the class (i mean bean) in the scriptlet
> and use it ?
>
> is ther any advantage ?
>
> 2)can anyone tell me the difference btw
>
> 1) request
> 2)session
> 3)application
>
> scopes ? when to use each one explicitly ?
>
> Regds
> Rakesh.
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets