File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Java Bean 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 "Java Bean" Watch "Java Bean" New topic

Java Bean

Allan Moster
Ranch Hand

Joined: Sep 14, 2001
Posts: 153
What's the difference (if any) between class attribute and beanName attribute? I know that I am permitted to use beanName instead of class attribute but I don't know exactly why.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

In what context are you asking this?
Like in a JSP useBean tag
Could you please clarify....
- satya

Take a Minute, Donate an Hour, Change a Life
Allan Moster
Ranch Hand

Joined: Sep 14, 2001
Posts: 153
<jsp:useBean beanName="SampleClass">
<jsp:useBean class="SampleClass">
Tim Duncan
Ranch Hand

Joined: Aug 20, 2001
Posts: 150
Have a look at the JSP spec (pp 67-73). One feature (see p.73) is that you can use a dynamic, request time expression for beanName.
I agree. Here's the link:
subject: Java Bean
It's not a secret anymore!