Check out Eval taglib in Coldtags suite:
http://www.servletsuite.com/jsp.htm
you evaluate JSP code in the string variable
--
Coldbeans Software - server-side Java (tm) components
http://www.servletsuite.com
__
Switch to Netscape In
ct: Re: Function call using variables
No, thats not what I wanted to do. I have to call the function in the
bean
but using a string variable that contains the function name.
For instance,
<%
String temp = "function" + "name" + "()"; // This is a simple example
of
No, thats not what I wanted to do. I have to call the function in the bean
but using a string variable that contains the function name.
For instance,
<%
String temp = "function" + "name" + "()"; // This is a simple example of
what I need to do.
%>
<%=temp%> -- This should ideally execute the fu
What are you planing to do ?
maybe this helps you out:
myID.myFunctionName() //returns a string
sorry if i missunderstood :-)
hope it helps
greets Jörg
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "si
I was hoping that there would be an eval/exec type command in JSP.
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Som
One option is to use reflection API though its costly.
Regards,
Sabari Arasu
AIG Refe
Jersey City, New Jersey
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED] On Behalf Of Prat
Sent: Friday, April 08, 2005 1:55 AM
To: J