Expression Language

2006-03-23 Thread David M Sledge
Do EL expressions only evaluate to String and primitive types?  I have code
similar to the following in my jsp.

 



  



 

Where uriList is an object of type java.util.List only containing
java.net.URI objects, and where uriValueMap has only java.net.URI objects as
keys and has for values objects with the property someProperty.

 

As a result, I end up getting the following exception:

 

javax.servlet.ServletException: Invalid argument looking up property:
"http://namespace-uri.org.someProperty"; of bean: "uriValueMap"

 

Is there any way to preserved the java.net.URI type as a lookup key?

 

Thanks,

 

David M. Sledge

Analyst/Programmer Specialist

LTER Network Office

Dept. of Biology, MSC03 2020
1 University of New Mexico
Albuquerque, NM  87131-0001

505-277-0666
[EMAIL PROTECTED]

 



Properties of Properties of Beans

2006-03-22 Thread David M Sledge
Is there a way I can access the properties of a property from a bean?

 

Suppose I set the following attribute:

 

servletContext.setAttribute("rootBean", rootBean);

 

and the object rootBean has the property childBean, and childBean has the
property grandChildBean (with the appropriate getters and setters).  Is
there a way I can access grandChildBean via a jsp tag without setting more
attributes?

 

David M. Sledge

Analyst/Programmer Specialist

LTER Network Office

Dept. of Biology, MSC03 2020
1 University of New Mexico
Albuquerque, NM  87131-0001

505-277-0666
[EMAIL PROTECTED]