How can I default some values to some initial values? I am basically trying to have a regular input form, which will write to some tables. I want the dates to be initialized to today's date by default & so as some fields. I tried pre/post select. They are never getting called at all. I am trying to debug it from the code.
Also, I want to have a simple login page. So, How do I access the db information as defined in the dbconfig.xml? ______________________________________________ Sunil Mishra, Manager, ADP Wilco (India) Private Limited * +91-40-2340 8600 x-8202 ---- * +91-98490-61241 -----Original Message----- From: Henner Kollmann [mailto:[EMAIL PROTECTED] Sent: Saturday, October 11, 2003 1:12 AM To: Sunil Mishra Cc: [EMAIL PROTECTED] Subject: AW: [dbforms] Extra fields in the JSP Not really a task for dbforms. It's not easy to show result of two tables in one forms. Best would be to define a query in dbforms or a view in your database to show the data from both tables. Then you can use your interceptor to store the data. Another idea is to use an after select interceptor... Never tried this.. Regard, Henner > I have a simple add form, which will write the data to 2 > different tables. I wrote an interceptor to take care of > that. So, the jsp has fields from both the tables. So, when I > try to display the screen, the dbforms call a select on the > table by default. It does not find the fields of the second > table here & throws NPE; because fields not found. > > Basically, I have some fields on the jsp, which are not > coming from any > table; but they are supposed to be captured & stored somewhere else. > > So, how should I achieve this? > > > Thanks > Sunil Mishra _ This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. This message is confidential and may also be legally privileged. If you are not the intended recipient, please notify [EMAIL PROTECTED] immediately. You should not copy it or use it for any purpose, nor disclose its contents to any other person. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of ADP Wilco. ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms
