You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Jorge De Flon <ja...@yahoo.com> on 2001/05/24 20:47:25 UTC

requirements

Hi,

I cant find the minumal requierements for velocity in de documentation.
Does it run in a servlet 2.0 container or it requieres 2.1 servlet
container?

thanks


----- Original Message -----
From: Geir Magnusson Jr. <ge...@optonline.net>
To: <ve...@jakarta.apache.org>
Sent: Monday, May 21, 2001 10:41 PM
Subject: Re: ResultSet question


> Jon Stevens wrote:
> >
> > on 5/21/01 8:29 PM, "Jorge De Flon" <ja...@yahoo.com> wrote:
> >
> > > What if you have a huge resultset?
> > > whatdo you recommend.
> > > I Know that it is a design frequent problem, but i would like your
opinion,
> > > because with velocity (or any division of labour) it it more critical.
> > >
> > > Thanks
> >
> > Most of the time, you aren't going to have a huge result set. It is a
bad
> > design to have one that is large because then you are sending back a ton
of
> > stuff to the user. Instead, what you should do is limit the result set
size
> > and display <previous> <next> buttons on the page so that the user can
> > scroll through the result set...much like google.com returns results...
> >
> > -jon
>
> +1
>
> Exactly.   Also, it wanks the server pretty good to move everything over
> the wire to the servlet from the db, keep it in memory in the servlet
> box, etc.
>
> I guess if you *must* do it, like if there is some calculation you can't
> make the db engine do for you, then I guess you have to :)
>
> geir
>
> --
> Geir Magnusson Jr.                           geirm@optonline.net
> System and Software Consulting
> Developing for the web?  See http://jakarta.apache.org/velocity/
> "still climbing up to the shoulders..."


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


RE: requirements

Posted by Jorge De Flon <ja...@yahoo.com>.
Thank you for the info, I has solved several doubts.
Regards,
Jorge


----- Original Message -----
From: Geir Magnusson Jr. <gm...@xyris.com>
To: <ve...@jakarta.apache.org>
Sent: Thursday, May 24, 2001 2:36 PM
Subject: Re: requirements


> From: "Jorge De Flon" <ja...@yahoo.com>
>
>
> > Hi,
> >
> > I cant find the minumal requierements for velocity in de documentation.
> > Does it run in a servlet 2.0 container or it requieres 2.1 servlet
> > container?
> >
>
> Technically speaking, Velocity is just a template engine ;) and doesn't
> *require* a servlet container.
>
> That said, we do provide a servlet base class called VelocityServlet that
> helps integrating Velocity into your web/servlet development easier.
>
> Take a look at that to see the kind of support that it offers.  Since most
> of the method that would be important to you, namly init and
> loadConfiguration() are aimed more towards a 2.2 environment, you might
> simply want to override init(), do you own Velocity configuration, and
then
> simply take advange of the writer pooling that VelocityServlet offers.
>
> If I remember right, people have used it successfully in a servlet 2.0
> container.  However, a 2.2 container like Tomcat 3.2 or any number of
other
> implementations are recommended.
>
> geir
>
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Re: requirements

Posted by "Geir Magnusson Jr." <gm...@xyris.com>.
From: "Jorge De Flon" <ja...@yahoo.com>


> Hi,
>
> I cant find the minumal requierements for velocity in de documentation.
> Does it run in a servlet 2.0 container or it requieres 2.1 servlet
> container?
>

Technically speaking, Velocity is just a template engine ;) and doesn't
*require* a servlet container.

That said, we do provide a servlet base class called VelocityServlet that
helps integrating Velocity into your web/servlet development easier.

Take a look at that to see the kind of support that it offers.  Since most
of the method that would be important to you, namly init and
loadConfiguration() are aimed more towards a 2.2 environment, you might
simply want to override init(), do you own Velocity configuration, and then
simply take advange of the writer pooling that VelocityServlet offers.

If I remember right, people have used it successfully in a servlet 2.0
container.  However, a 2.2 container like Tomcat 3.2 or any number of other
implementations are recommended.

geir