Обсуждение: Accessing functions from JSP code

Поиск
Список
Период
Сортировка

Accessing functions from JSP code

От
Minal
Дата:
Hi..
I am trying to access functions from the jsp code, using the following
code. I  get error and just cant access the function. Dont know what to do??
Please help...

    sql="execute sp_login 'INSERT','admin','"+username+"','"+password+"'";
    pStat=conn.prepareStatement(sql);
    msg=pStat.executeUpdate();

Minal

Re: Accessing functions from JSP code

От
Dave Cramer
Дата:
Minal,

You will have to give us more than the following three lines of code
if you expect anyone to be able to point you in
the right direction.

What is the error message, how do you get the connection, how do you
load the driver ....etc.

DAve
On 25-Jul-05, at 2:38 AM, Minal wrote:

> Hi..
> I am trying to access functions from the jsp code, using the
> following code. I  get error and just cant access the function.
> Dont know what to do??
> Please help...
>
>    sql="execute sp_login 'INSERT','admin','"+username+"','"+password
> +"'";
>    pStat=conn.prepareStatement(sql);
>    msg=pStat.executeUpdate();
>
> Minal
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
>