wood burning stoves 2.0*
The moose likes JSP and the fly likes EL expression evaluation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "EL expression evaluation" Watch "EL expression evaluation" New topic
Author

EL expression evaluation

Maciek Falski
Greenhorn

Joined: Nov 29, 2005
Posts: 21
Hi folks!
I'm invoking my servlet through link = http://localhost:8080/test.do?evalparam=duck.name .
test.do servlet adds an attribute "duck" of class Duck (JavaBean with "name" property) to request scope.
Then I forward a request to test.jsp page.
What I want to do is evaluate parameter evalparam=duck.name to EL expression.
I know that I could do this by spliting evalparam parameter to two parts part1="duck" and part2="name" and then invoke ${requestScope[part1][part2]} but I'd like to do it through some kind of evaluation mechanism, e.g. ${evaluate(evalparam)} to acces property. And I'd like this mechanism be property chain independent.
Do you have any suggestions?
I'm considering creating tag which would evaluate this expression but is there any easier way?
Thanks a lot,
Cheers,
Maciek
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EL expression evaluation
 
Similar Threads
EL expression evaluation
Filter invocation
it is possible to send data through an URL in the Sony Erics K300 phone ?
Need to get the full path upto application name
Any imposed deadline for purchasing part2 and part3?