Hi
The arguments in favor of using the useBean tag are:

1.The tag syntax is arguably less intimidating to HTML designers.
2.useBean has a "scope" parameter that automatically determines whether the
bean should be stored     as a local variable, a request variable, a session
variable, or an application attribute. If you were to     create beans
explicitly you'd have to do it 4 different ways for the 4 different scopes.
3.If the variable is persistent (session or application), useBean
initializes it if necessary, but fetches         the variable if it already
exists.
4.The tags are potentially more portable to future versions of the JSP spec,
or alternate           implementations (for example, a hypothetical JSP
engine that stores variables in a database, or     shares them across server
processes

thankz
prasanjeet



----- Original Message -----
From: "Narayanaswamy, Kumaran (CTS)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 04, 2000 2:23 PM
Subject: Which is the Best Method to do??


> Hi All
> I need some Clarification regarding which method is efficient?
> I have a Javabean.I need to use it in JSP .
> Can i go for usebean TaG OR instatiating the bean and access its methods
> inside <% %> tag.Please also note that if the Java bean need to be
Converted
> to Enterprise Java Bean there should be only minimum Code Change.
>
> with regards,
> Kumaran
>
> This e-mail and any files transmitted with it are for the sole use
> of the intended recipient(s) and may contain confidential and privileged
information.
> If you are not the intended recipient, please contact the sender by reply
e-mail and
> destroy all copies of the original message. Any unauthorised review, use,
disclosure,
> dissemination, forwarding, printing or copying of this email or any action
taken in
> reliance on this e-mail is strictly prohibited and may be unlawful.
>
>                 Visit us at http://www.cognizant.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> 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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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