You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Claude Brisson (JIRA)" <de...@velocity.apache.org> on 2008/08/29 13:04:45 UTC

[jira] Commented: (VELTOOLS-106) question on VelocityView

    [ https://issues.apache.org/jira/browse/VELTOOLS-106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626933#action_12626933 ] 

Claude Brisson commented on VELTOOLS-106:
-----------------------------------------

Hi bulejoe,

Nathan did already answer your question on the user mailing list, didn't you see it?

I paste again his answer:

> yes, the VelocityViewTag does not currently do any caching of the
> template/tag body, so it must be reparsed for each render.   Once
> Velocity Engine 1.6 is released, we will be able to properly use the
> new StringResourceLoader to easily provide that caching.  until that
> time, VelocityViewTag will only perform well when it loads templates
> via a template="foo.vm" attribute, rather than having the template as
> its body.

Maybe it wasn't clear enough for you, then you should continue on the user mailing list,
this place is not meant to discuss user issues.

Still, we can maybe leave this ticket open to remember to implement this caching once
the v1.6 of the engine is out...


  Claude


> question on VelocityView
> ------------------------
>
>                 Key: VELTOOLS-106
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-106
>             Project: Velocity Tools
>          Issue Type: Wish
>          Components: VelocityView
>    Affects Versions: 2.x
>         Environment: resin3.0 jdk1.5
>            Reporter: bluejoe
>
> Dear developers,
> Sorry to bother you!
> I am a user of VelocityTools from China, and I want to rewrite some JSP pages in Velocity template language. I have no idea whether to use VelocityViewServlet or VelocityViewTag, then I choosed VelocityViewTag, considering some JSP features, such as taglib or fragment, may be used.
> I use resin as J2EE container, when I use VelocityViewTag in the page, I found the page displayed so slowly in web browser. Maybe the compilation of Velocity template requires much time, I think. So,  can you give me some advice on how to improve the speed? 
> Thank you very much and expect your early reply! 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org