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

On jsp:useBean

 
Vepa Sritej
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tarun Yadav
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic