X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DC1BD52946 for ; Wed, 3 Aug 2005 03:08:55 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 36489-04 for ; Wed, 3 Aug 2005 06:08:47 +0000 (GMT) Received: from gatekeeper.yes2etl.com (unknown [202.88.179.103]) by svr1.postgresql.org (Postfix) with ESMTP id 88E1252802 for ; Wed, 3 Aug 2005 03:08:39 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by gatekeeper.yes2etl.com (8.12.10/8.12.10) with ESMTP id j74DihFG010599 for ; Thu, 4 Aug 2005 19:14:43 +0530 Received: from gatekeeper.yes2etl.com ([127.0.0.1]) by localhost (gatekeeper [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08732-10 for ; Thu, 4 Aug 2005 19:14:43 +0530 (IST) Received: from mtracks.yes2etl.com (mtracks.yes2etl.com [10.1.2.53]) by gatekeeper.yes2etl.com (8.12.10/8.12.10) with ESMTP id j74DiffF010595 for ; Thu, 4 Aug 2005 19:14:41 +0530 Received: from localhost (localhost [127.0.0.1]) by mtracks.yes2etl.com (8.12.10/8.12.10) with ESMTP id j7367kgn024670 for ; Wed, 3 Aug 2005 11:37:46 +0530 Received: from mtracks.yes2etl.com ([127.0.0.1]) by localhost (mtracks [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20365-04 for ; Wed, 3 Aug 2005 11:37:46 +0530 (IST) Received: from [10.1.2.15] (pc-15.yes2etl.com [10.1.2.15]) by mtracks.yes2etl.com (8.12.10/8.12.10) with ESMTP id j7367Iow024624 for ; Wed, 3 Aug 2005 11:37:18 +0530 Message-ID: <42F05EA7.4000102@yes2etl.com> Date: Wed, 03 Aug 2005 11:35:27 +0530 From: Minal User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: postgresql.stat.result Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at @@NET_SUBDOMAIN@@.yes2etl.com X-Virus-Scanned: by amavisd-new at @@NET_SUBDOMAIN@@.@@NET_DOMAIN@@ X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200508/18 X-Sequence-Number: 13587 hi.... I am calling a function using the following JSP code...my function name is "sp_login". As every function is supposed to return something...my function returns 1, on completion of the task....I am getting the following error.. org.apache.jasper.JasperException: postgresql.stat.result The jsp code is as follows: Can someone help me???? sql="SELECT sp_login ('INSERT','admin','"+username+"','"+password+"')"; //sql="INSERT INTO USERS (USERTYPE,USERNAME,PASSWORD) VALUES ('admin','"+username+"','"+password+"')"; pStat=conn.prepareStatement(sql); msg=pStat.executeUpdate(); out.println(msg); if(msg==1) {%> <%} else {%> <%} }%>