| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> executeQuery Can't pass variable to SQL. :-( Why?
In jsp land you can have the following:
<%
String name = "Nelson";
%>
Hi, my name is <%= name %>.
Such that, in your browser you see:
Hi, my name is Nelson.
I am trying to do similiar with the executeQuery() method and it is
not working. Can anyone tell me what is wrong with the syntax I'm
using?
The jsp won't compile. It seems to not want to allow me to pass a
variable called recordkey, which in this example has a value of 999.
But in a loop structure which I'm looking to create, the value would
change. Thanks for any and all help.
<%@ page import="java.util.*,
java.text.*,
java.io.*,
java.sql.*"
Nelson Broat
nelson.broat_at_mail.cuny.edu
Received on Fri Aug 08 2003 - 17:16:41 CDT
![]() |
![]() |