It's not a secret anymore!*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes expression language Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "expression language" Watch "expression language" New topic
Author

expression language

James Clarke
Ranch Hand

Joined: Oct 04, 2004
Posts: 148
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

Joined: Oct 04, 2004
Posts: 148
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

Joined: Oct 26, 2004
Posts: 56
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

Joined: Oct 04, 2004
Posts: 148
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

Joined: Apr 06, 2005
Posts: 72
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: expression language