pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Minal <minalac@yes2etl.com>
To: pgsql-jdbc@postgresql.org
Subject: postgresql.stat.result
Date: Wed, 03 Aug 2005 11:35:27 +0530
Message-ID: <42F05EA7.4000102@yes2etl.com> (raw)

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)
        {%>
        <jsp:forward page="message_user.jsp?done=yes&action=add"/>
        <%}
    else
        {%>
        <jsp:forward page="message_user.jsp?done=no&action=add"/>
        <%}
}%>



view thread (4+ messages)  latest in thread

Message-ID: <42F05EA7.4000102@yes2etl.com>
Permalink:  ../42F05EA7.4000102@yes2etl.com/
Also on:    postgresql.org/message-id/42F05EA7.4000102@yes2etl.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: minalac@yes2etl.com
  Subject: Re: postgresql.stat.result
  In-Reply-To: <42F05EA7.4000102@yes2etl.com>
  References: <42F05EA7.4000102@yes2etl.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox