Re: Dynamic execution of a string as a java statement



On 2/27/2007 2:18:31 PM, "GreenMountainBoy" wrote:
I need to build up a string that represents a java statement and then
execute it. Does anyone know how?

Thanks so much,

GreenMountainBoy



Just an FYI: You're potentially opening yourself up to a SQL-injection attack
depending on how you're going to modify that string prior to calling it.

Maybe you could tell a bit more about what you're trying to do. Then a better
solution might come from that discussion.


--
"My first thought was, he lied in every word,
That hoary cripple, with malicious eye
Askance to watch the working of his lie"

- Browning
.



Relevant Pages