tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Johnson-Evers <>
Subject RE: DBTags insert weirdness, sybase
Date Thu, 29 Nov 2001 21:17:03 GMT
It's a long shot, but maybe your browser is doing some caching. Do you have
meta tags on your processor page to stop browsers from caching?

If not, start the debugging process by checking your HTTP and/or DB logs to
see if you can figure out what is and is not happening. I don't know what it
could be.


-----Original Message-----
From: Bill Moss []
Sent: Thursday, November 29, 2001 2:49 PM
Subject: DBTags insert weirdness, sybase

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



my processor page follows:

<%@ taglib uri="" prefix="sql" %>

<sql:connection id="conn2">

First: <%=request.getParameter("fname")%> <br>
Middle: <%=request.getParameter("mname")%> <br>
Last: <%=request.getParameter("lname")%> <br>
Age: <%=request.getParameter("age")%> <br>
Unit: <%=request.getParameter("unit")%> <br>
Gender: <%=request.getParameter("gender")%> <br>
Subtype: <%=request.getParameter("stype")%> <br>
Position: <%=request.getParameter("pos")%> <br>
Condition: <%=request.getParameter("cond")%> <br>
Description: <%=request.getParameter("descr")%> <br>
Reported to Attending: <%=request.getParameter("rtat")%> <br>
Reported to Nursing: <%=request.getParameter("rtnu")%> <br>
Reported to Pharmacy: <%=request.getParameter("rtph")%> <br>
Reported to Admin: <%=request.getParameter("rtad")%> <br>

<%-- insert a row into the database --%>
<sql:statement id="stmt1" conn="conn2">
  <%-- set the SQL query --%>

insert into holding (fname, mname, lname, age, unit, gender, stype, pos, 
cond, descr, rtat, rtnu, rtph, rtad) values






  <%-- execute the query --%>

Get your FREE download of MSN Explorer at

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message