I'm getting the value from request, by passing this value I want to call a java method(getSquere()).
In the jsp where I am calling the java method using prefix and want to pass the value which comes with request to method. I have used EL and <%= %> to get the values and pass an arguemnt but none of them is working. Here is code line which I've used.
Originally posted by Hongli Li: creat a tld file to describe your funtion(getSquere).
That will not work. You cannot use the EL to call instance methods at all. EL functions must be static functions and I'm pretty sure that's not what you are describing.
This is not valid syntax.
Your best bet is to figure why you need to call a general function in JSP and see if you can get by without it by factoring processing out into the page controller. Otherwise, you might look into an EL function (keeping in mind their limitations) or a custom tag.
Finding something on a JSP page that you can do with a scriptlet but not the EL is usually a red flag that you are doing something in the JSP that should be done in a Java class. Think long and hard about that. [ March 18, 2008: Message edited by: Bear Bibeault ]