Home > Archive > PostgreSQL JDBC > July 2005 > Accessing functions from JSP code









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Accessing functions from JSP code
Minal

2005-07-25, 3:37 am

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

Dave Cramer

2005-07-25, 7:34 am

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
>
>



---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com