as far i know <jsp:useBean .........> has lot of advantages.
for more information read this artical.

http://www.javaworld.com/javaworld/jw-03-2000/jw-0331-ssj-forms_p.html



-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Rathinavel Palaniappan
Sent: Tuesday, July 11, 2000 8:43 AM
To: [EMAIL PROTECTED]
Subject: Re: 2 questions..


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 ?
>

>
> 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

===========================================================================
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

Reply via email to