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 jsp:useBean question 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 "jsp:useBean question " Watch "jsp:useBean question " New topic

jsp:useBean question

Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
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

Joined: Nov 08, 2001
Posts: 4
<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

Joined: Oct 27, 2002
Posts: 87
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.
Maha Anna

OR (using request time attribute expression)
I agree. Here's the link:
subject: jsp:useBean question
It's not a secret anymore!