• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
Wait for it ... wait .... wait .... NOW! Pafiffle! A perfect tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic