How about writing it to a database table. Just make a single table that holds info, make entity ejb which maps object to db table, use set methods to on ejb object and you have persistence. >From: Richard Diaz <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Help! with Object Persistance. >Date: Fri, 25 Aug 2000 11:28:16 -0700 > >Say I have created a Java class called jWidget. The user can get and set >properties of this object through a web based GUI. (in reality there will >be >about 5-20 widgets per JSP page) > >Once this object's properties are set, I want to store this object for >later >retrieval, i.e. keep it persistent. > >Should I 'map' this Java object as an XML object, write it to the server >then just read it when the user requests it? Do I use SAX? DOM? (don't know >these too well) > >What approaches can one take in object persistence? Using Java Applets, >Servlets, JSPs, etc. > >I'm using Redhat Linux 6.0 & Tomcat 3.1 BTW. > >thanks in advance! >Rich > >Richard Diaz >Senior Programmer/Analyst >Mantech/Advanced Development Group >www.AdgInc.com > > >__________________________________________________ >Do You Yahoo!? >Talk to your friends online with Yahoo! Messenger. >http://im.yahoo.com > >=========================================================================== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". >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 ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
