Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Objective 10.3

 
Peter Masreblta
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Objective 10.3: Identify techniques that access a declared JavaBean component.
Couple of notes mentioned that:
A declared JavaBean can also be accessed using: (the name specified in the id attribute of <jsp:useBean> )
Scripts
Expressions
Custom Tag
Can anybody give some examples?
Thanks
[This message has been edited by Peter Masreblta (edited October 23, 2001).]
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the "id" is myBean,
Scriptlet:
<% String name = myBean.getName(); %>
Expression:
The name is <%= myBean.getName() %>
Or a more tedious way:
The name is <jsp:getProperty name="myBean" property="name"/>
I leave the other one to others...
And it's not customer tag but custom tag.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Most of these are also in the Tutorials.
Chkout the javaranch links page.
Specifically, here is the useBean Tutorial.
regds.
- satya
 
Peter Masreblta
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tony and Madhav:
Thanks a lot.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic