I want to insert a sysdate into my facquiredate column anytime something is
added - where and how do I put the sysdate? - I want the date and the time.
Thanks in advance
I use a bean and a servlet
here is the code from the first jsp page
<TR>
<TD><b>Acquire Date: </b></td><td> <input type=date name=ffacquiredate
width ="15">
</td>
here is the bean that retrieves it
<%@ page language="java" %>
<jsp:useBean id="insertBean" scope="request" class="jdbc.InsertHandheld"/>
<%
insertBean.setFdeviceid(request.getParameter("ffdeviceid"));
insertBean.setFacquiredate(request.getParameter("ffacquiredate"));
%>
<p>
The Following HandHeld has been Added:
<p>
Device Id: <%= insertBean.getFdeviceid() %>
<br>
Acquire Date: <%= insertBean.getFacquiredate() %>
<br>
</body>
</html>
Thanks
[EMAIL PROTECTED]
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets