my dog learned polymorphism*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes On jsp:useBean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "On jsp:useBean" Watch "On jsp:useBean" New topic
Author

On jsp:useBean

Vepa Sritej
Ranch Hand

Joined: Jul 31, 2006
Posts: 42
Hello..

Can anyone explain what is the use of beanName attribute in <jsp:useBean> as opposed to class attribute. I read somewhere that these both cannot be used in conjunction.


tej<br /> <br />SCJP 1.5 --75%<br />SCWCD --89%<br />SCBCD/Web Services!! Yet to Decide
Tarun Yadav
Ranch Hand

Joined: Sep 20, 2007
Posts: 134
Take a look at the attribute explanations for the attributes here. Basic differences:
- beanName can be a run time expression
- beanName works for serialized beans

And yes, you cannot use all the attributes together. Valid useBean tags can have:

* class
* class and type
* type and beanName
* type
 
wood burning stoves
 
subject: On jsp:useBean
 
Similar Threads
<jsp:useBean>
JSP's setProperty
jsp:useBean
beanname
beanName