File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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?


SCJP<br />SCWCD<br />SCEA
Steve Guo
Greenhorn

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.
Regards,
Maha Anna

OR (using request time attribute expression)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: jsp:useBean question