• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Couple of question regarding EL and Bean

 
James Tharakan
Ranch Hand
Posts: 580
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When using the Bean tags in Jsp we refered the object created by the tags as BEAN.
But when using the Expression Langauge we are still using the terms Bean, how is it correct? Why not refer it as OBJECT itself ?

What is the point i am missing?? Could somebody explain it to me where my understanding is wrong ?


One more question?
Is there any thing that we can do for the arrays and Lists using the dot operator?
 
Ankit Garg
Sheriff
Posts: 9577
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dot operator doesn't work on lists and arrays. There isn't any java bean style properties in both of these which you can call, and they don't allow indexed access using dot operator.

As for the first question, I couldn't understand the question so can't help...
 
James Tharakan
Ranch Hand
Posts: 580
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator





Why do we call the funObject in the EL as bean ?
Wish i am clear
 
Ankit Garg
Sheriff
Posts: 9577
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your question about the word that we use to refer to any object in a scope. Basically are you trying to ask why do we call funObject a Bean and not an Object??
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can call it a bean, because you are accessing its properties via getters and setters following the JavaBeans spec.
 
James Tharakan
Ranch Hand
Posts: 580
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit Garg wrote:Is your question about the word that we use to refer to any object in a scope. Basically are you trying to ask why do we call funObject a Bean and not an Object??

Exactly thats the question
 
Ankit Garg
Sheriff
Posts: 9577
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Christophe has answered the question, if you are still confused then you can ask...
 
James Tharakan
Ranch Hand
Posts: 580
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Christophe Verré wrote:I think you can call it a bean, because you are accessing its properties via getters and setters following the JavaBeans spec.

Sorry i forgot mention that this cleared the doubt.
 
Ankit Garg
Sheriff
Posts: 9577
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When your doubt is cleared, you can press the button at the bottom (won't be visible now) to indicate that your doubt is cleared...
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic