Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

expression language

 
James Clarke
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Do map objects need to be stored as attibutes in the request object for accessing them from expression language ?
ie. In ${testmap.name} does testmap need to be store as an attribute in a request.

is there other objects that can store the map for exp language to be able to access it ?

thanks,

J.C
 
James Clarke
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry also meant to ask about where the bean class file needs to be stored for el to access it ?

cheers,
J.C
 
muthu kumaran
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
James,

The answer to u'r first question

1)Do map objects need to be stored as attibutes in the request object
for accessing them from expression language ?

Actually request is one of the scopes where you can store map/bean objects. The other scopes where u can store those objects are
-> session
-> page
-> application

2)where the bean class file needs to be stored for el to access it ?

All the class files need to be stored in WEB-INF/classes directory of the web application

Hope this would answer your questions

muthu
 
James Clarke
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Correct me if Im wrong but my understanding was that beans don't need to be stored as an attribute, but is accessed automatically from the WEBINF/classes directory ???
 
Kalyani Marathe
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you are right that bean is stored in classes.
But the instance of bean with user input values is stored in some scope for further manipulation.

I hope this helps.

Thanks
Kalyani.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic