velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Terry Steichen" <te...@net-frame.com>
Subject Re: Freeing myself from JSP. VelocityServlet support for javabeans.
Date Mon, 08 Apr 2002 12:27:57 GMT
Put the bean in the Velocity context and use it from the template.  What I
often do is initially put all (or at least most) of my business logic in the
template (using context-based tools) and then later move the logic back to
the managing Java module.  This way I start with very fast prototyping, but
can migrate to well-compartmented code when I have time.

Regards,

Terry

----- Original Message -----
From: "Stephen Riek" <stephenriek@yahoo.co.uk>
To: <velocity-user@jakarta.apache.org>
Sent: Sunday, April 07, 2002 10:47 PM
Subject: Freeing myself from JSP. VelocityServlet support for javabeans.


>
> I love Velocity. It's bloody fast, has an elegant design and most
importantly of all, whoever was responsible for documentation did a
tremendous job.
>
> However, I still find prototyping in JSP to be quicker. One of the main
reasons is the close integration of Javabeans such as
>
> <jsp:useBean id="ord" class="orderBean" scope="request">
>   <jsp:setProperty name="ord" property="*"/>
> </jsp:useBean>
>
>
> Is there anything in the velocityServlet can do the same ? Or is there
boilerplate code that should be able to do similar ?
>
> Thanks in advance,
>
> Stephen.
>
>
>
> ---------------------------------
> Do You Yahoo!?
> Get personalised at My Yahoo!.



--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message