• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

useBean Standard action

 
Sophie Angela
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question:

product is a session attribute ..which holds a info object.Info object has a name property.
which of the following will print the name in the response..?

1.<jsp:getProperty id="product" type="info" />

2<jsp:useBean id="product class="info" >
<%= product.getName() %>
</jsp:useBean>

choose any one of them..if i get a option like this in the exam which one will i have to choose?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should check about what the "type" attribute means, and you may find your answer
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Satou kurinosuke:
You should check about what the "type" attribute means, and you may find your answer

"info" isn't valid in either option.

You should consider changing your study materials to something of higher quality. The Head First Servlets & JSP book is very popular.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic