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 doubt. 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 doubt." Watch "jsp:useBean doubt." New topic
Author

jsp:useBean doubt.

chani singh
Greenhorn

Joined: Mar 23, 2006
Posts: 17
You want to use a bean that is stored in com/enthu/GUI.ser file. Which of following statements correctly defines the tag that accesses the bean?


Select 1 correct option.
a <jsp:useBean id="pref" name="com/enthu/GUI.ser" />


b <jsp:useBean id="pref" name="com.enthu.GUI" />


c <jsp:useBean id="pref" type="com/enthu/GUI.ser" />


d <jsp:useBean id="pref" beanName="com.enthu.GUI" type="com.enthu.GUI"/>


e <jsp:useBean id="pref" class="com.enthu.GUI.ser" />


tha ans is d, why cant it be e..??
Martyn Clark
Ranch Hand

Joined: Apr 16, 2005
Posts: 108
Hi chani

tha ans is d, why cant it be e..??


Using beanName if there is not already a bean one will be created and initialized with the data in the .ser file.


Martyn...<br /> <br />SCJP 1.4 SCWCD 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp:useBean doubt.