Is it possible to use the same form for creating a new document as well as
editing it ? Here are my directories and JSPs
createDocument
\ index.jsp
\ submit.jsp
editDocument
\ index.jsp
\ submit.jsp
I would like createDocument\index.jsp and editDocument\index.jsp to include
the same form with <jsp:include page="form.jsp" /> so that if there is a
change it will be easy to update the form.
How should I fill the field item values in the form.jsp from the database ?
I am using Jakarta project dbtaglib to get data from the database and fill
field values like this in form.jsp
<sql:statement id="stmt1" conn="conn1">
<sql:query>
select * from documents
</sql:query>
<sql:resultSet id="rset2">
Title = <input type="text" name="title" value="<sql:getColumn
position="1"/>">
Description = <input type="text" name="description"
value="<sql:getColumn position="2"/>">
</tr>
</sql:resultSet>
</sql:statement>
But this does not work in createDocument\index.jsp because there is no
resultset.
Are javabeans better than dbtaglib for this ? Can a javabean use a dbtaglib
database connection ?
Thank you, Soefara
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
===========================================================================
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://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com