Please reply soon

2001-12-29 Thread JOSHY MON M C
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

Re: Please reply soon

2001-12-29 Thread Yan Zhu
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 emp

Re: Please reply soon

2001-12-29 Thread Robert Burdick
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 s

Re: Please reply soon

2001-12-30 Thread Anthony Tagunov
Hello JOSHY! IMO Option 1 is better, but you would be better of with some collection class from Java2, people who answered similar questions before suggested ArrayList, if I'm not mistaken. It is better then vector because it is slightly faster - it its methods are not synchronized, while Vector

Re: Please reply soon

2001-12-30 Thread Anthony Tagunov
Hello JOSHY! IMO Option 1 is better, but you would be better of with some collection class from Java2, people who answered similar questions before suggested ArrayList, if I'm not mistaken. It is better then vector because it is slightly faster - its methods are not synchronized, while Vector is.

Re: Please reply soon

2001-12-30 Thread JOSHY MON M C
Thanks for your answer. Getting an HTML string - my option 2., has any advantages, anyway ? Further to hear from you Thanks Joshy -Original Message- From: Anthony Tagunov [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 30, 2001 3:02 PM To: [EMAIL PROTECTED] Subject: Re: Please reply

Re: Please reply soon

2001-12-30 Thread Anthony Tagunov
e data from).. JMMC> -Original Message- JMMC> From: Anthony Tagunov [mailto:[EMAIL PROTECTED]] JMMC> Sent: Sunday, December 30, 2001 3:02 PM JMMC> To: [EMAIL PROTECTED] JMMC> Subject: Re: Please reply soon JMMC> Hello JOSHY! JMMC> IMO Option 1 is better, but you wo