Option 3 below is the best one. XML / XSLT is a perfect solution for this kind of thing.
At 08:24 AM 12/29/2001 -0600, Yan Zhu wrote: >3. maybe return the collection in xml format, then you can >use xsl to change the displays anytime you want to. >4. webmacro uses a display template to totally separate the >data from html, that might help to. > >JOSHY MON M C wrote: > > > Hi all > > I want to make a list page(JSP), that shows a list of employees . Employee > > ID, name, other info etc. > > > > - for that I have a servlet ( I use Model -2 ) that can either > > > > 1. get a Vector of Employee detail objects from the database. OR > > 2. Get an HTML string (for Listing), getting data from > > database.(means gets the employee data, iteerate it and make HTML for > > displaying) > > > > After getting either of these, I want to pass it to the List.jsp for > > displaying. > > Can you suggest which is the suitble method. > > > > I prefer the option 1 because, when the layout in the list page changes > some > > day, one can easily modify it. > > > > Can anybody help. > > Thanks in advance > > Joshy > > > > =========================================================================== > > 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 > >=========================================================================== >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 --------------------------------------------------------------------------------------------------------------------- Robert Burdick Author, "Essential Windows CE Application Programming", John Wiley and Sons Co-author, "Professional JSP, 2nd Edition", Wrox Press Microsoft eMVP [EMAIL PROTECTED] www.wAppearances.com (650)-917-8446 (office) (650)-906-3707 (cell) =========================================================================== 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