wood burning stoves 2.0*
The moose likes Struts and the fly likes using EL function 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 » Frameworks » Struts
Bookmark "using EL function" Watch "using EL function" New topic
Author

using EL function

prakash chauhan
Ranch Hand

Joined: Jun 22, 2007
Posts: 81
Hi
I have the following code:



The Line i am having problem with is:


I have created an EL function that accepts two strings and tells whether the msg_id(which is first argument) has been read by the emp_id(which is the second id and has been hard -coded here)

but on executing the jsp i get the following error:


I have tested my EL function and there is not problem with it .. as if i call the EL function with both the values hardcoded eg. ${readStatus:GetUpdateReadStatus("ab12","123456")
it prints the result , "READ" or "NOT READ"
the problem i having with is giving the value at runtime

I would appreciate any help
Thanks.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Try it this way:

This is a single EL xpression, so you don't need a second set of EL delimiters (${}).


Merrill
Consultant, Sima Solutions
prakash chauhan
Ranch Hand

Joined: Jun 22, 2007
Posts: 81
hey Merrill
Thanks again for help
yes its working ..

-regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using EL function
 
Similar Threads
how to count entries in logic:iterate and display
how to do a pagination like "Page: 1 2 3 4 5 6 7" in a jsp ?
problem with url rewriting in sturts link
using html:link to pass parameter
how to do a Pagination like "Page:1 2 3 4 5 6 " in a jsp?