Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@apache.org Received: (qmail 43064 invoked from network); 29 Nov 2001 20:50:11 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 29 Nov 2001 20:50:11 -0000 Received: (qmail 16852 invoked by uid 97); 29 Nov 2001 20:49:35 -0000 Delivered-To: qmlist-jakarta-archive-taglibs-user@jakarta.apache.org Received: (qmail 16800 invoked by uid 97); 29 Nov 2001 20:49:33 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tag Libraries Users List" Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 16778 invoked from network); 29 Nov 2001 20:49:33 -0000 X-Originating-IP: [12.98.179.246] From: "Bill Moss" To: taglibs-user@jakarta.apache.org Bcc: Subject: DBTags insert weirdness, sybase Date: Thu, 29 Nov 2001 15:49:28 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 29 Nov 2001 20:49:28.0882 (UTC) FILETIME=[56B25120:01C17917] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm having problems inserting to a Sybase ASA 6 DB. I'm using v1.0 DBTags, Tomcat 4.1, jconn2, and Sybase ASA 7 running a 6.0 db file (all on Win2k). I have a form which uses DBTags to populate various select boxes, it does this well. The form uses one connection which is closed at the end of the form. The form posts to a page that opens another connection, processes the data using an insert SQL statement with getParameters to populte the values to insert. The form parameters are getting passed. The problem is that: The db only seems to hold 2 or 3 rows. The first form post works. The second one sometimes works, a third post will replace the second row. A third post will delete the previous two and it will be the only row. But then I'll be able to post 3 times, etc. I'm using an idenity column for id which is the primary key (identity is like auto increment). Is there some weird caching going on... Help! Thanks, Bill my processor page follows: <%@ taglib uri="http://jakarta.apache.org/taglibs/dbtags" prefix="sql" %> jdbc:sybase:Tds:localhost:2638/Mooky com.sybase.jdbc2.jdbc.SybDriver dba sql First: <%=request.getParameter("fname")%>
Middle: <%=request.getParameter("mname")%>
Last: <%=request.getParameter("lname")%>
Age: <%=request.getParameter("age")%>
Unit: <%=request.getParameter("unit")%>
Gender: <%=request.getParameter("gender")%>
Subtype: <%=request.getParameter("stype")%>
Position: <%=request.getParameter("pos")%>
Condition: <%=request.getParameter("cond")%>
Description: <%=request.getParameter("descr")%>
Reported to Attending: <%=request.getParameter("rtat")%>
Reported to Nursing: <%=request.getParameter("rtnu")%>
Reported to Pharmacy: <%=request.getParameter("rtph")%>
Reported to Admin: <%=request.getParameter("rtad")%>
<%-- insert a row into the database --%> <%-- set the SQL query --%> insert into holding (fname, mname, lname, age, unit, gender, stype, pos, cond, descr, rtat, rtnu, rtph, rtad) values ( '<%=request.getParameter("fname")%>', '<%=request.getParameter("mname")%>', '<%=request.getParameter("lname")%>', <%=request.getParameter("age")%>, <%=request.getParameter("unit")%>, <%=request.getParameter("gender")%>, <%=request.getParameter("stype")%>, <%=request.getParameter("pos")%>, <%=request.getParameter("cond")%>, '<%=request.getParameter("descr")%>', <%=request.getParameter("rtat")%>, <%=request.getParameter("rtnu")%>, <%=request.getParameter("rtph")%>, <%=request.getParameter("rtad")%> ) <%-- execute the query --%> _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe, e-mail: For additional commands, e-mail: