File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Bean

 
Allan Moster
Ranch Hand
Posts: 153
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In what context are you asking this?
Like in a JSP useBean tag
Could you please clarify....
regds.
- satya
 
Allan Moster
Ranch Hand
Posts: 153
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<jsp:useBean beanName="SampleClass">
vs
<jsp:useBean class="SampleClass">
 
Tim Duncan
Ranch Hand
Posts: 150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic