• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

expression language

 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ???
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic