• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp:useBean doubt.

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..??
 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic