• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Couple of question regarding EL and Bean

 
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?
 
Sheriff
Posts: 9671
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • 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: 9671
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • 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??
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • 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: 9671
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • 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: 9671
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • 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...
 
There's a way to do it better - find it. -Edison. A better tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic