• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp:useBean question

 
Timber Lee
Ranch Hand
Posts: 157
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want to use a bean that is stored in com/enthu/GUI.ser file. how to define the tag that accesses the bean?
 
Steve Guo
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<jsp:useBean id="mybean" beanName="serialized file name">
(when I wrote the reply, the screen did not show the original, so I forgot the .ser name - sorry)
 
Maha Annadurai
Ranch Hand
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a sample code I played with.
Note that beanName should be accompanied with 'type' attribute. It can't stand alone in a useBean action. Also 'beanName' can accept a request time attribute expression , but not 'class' attribute.
Regards,
Maha Anna

OR (using request time attribute expression)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic