Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in mocktest

 
sukhavasi vasavi
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A JSP page needs to instantiate a java bean to be used by only that page.
Which two jsp:useBean attributes must be used to access this attribute in JSP page?

a)id
b)type
c)name
d)class
e)scope

I have confusion in this qn that in one mock test the answer gave as class and in another mock test it given as type.
Please explain?
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer can't be type because, the question says that a JSP page needs to instantiate a bean which means the bean did not exist. So you need to create a bean for which you have to use class. Obviously the other attribute would be it's id.
 
sukhavasi vasavi
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.I got it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic