• 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

Ethurware Query

 
Ranch Hand
Posts: 357
  • 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"


Which is the correct answer.???

Given answer is d. But i think its e.

Please give me suggestion.
 
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

d is right. The .ser files are stored in pysicla disk file with state. Only the beanName option try to find it.

Thanks
 
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The allowed combinations of the mandatory attributes for the <jsp:useBean> tag are:

1. class
2. type
3. class and type
4. bean and type

(id attribute is anyway mandatory in all the 4 above options).

Hope the above helps to remember this easily.
 
I will open the floodgates of his own worst nightmare! All in a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic