Since you are using Struts v1.2.4 I must recommend you download
VelocityTools v1.2dev from CVS and use that instead of v1.1- it has much
better Struts 1.2.* support.

This will, however, probably not affect your current problem :P

cheers,
Marinó


"Chris Searle" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> OK - using struts 1.2.4 together with velocity 1.4 and velocity tools
> 1.1
>
> This is based on using the velocity view servlet together with the
> struts tiles integration. It is a conversion of an existing
> struts/tiles project converting jsp's to vm's.
>
> Tiles layout is fairly simple -
>
> header across the top
> left menu down the left
> content - footer - copyright above each other down the center
> right menu down the right
>
> Each tile is a .vm template - as is the layout files. The only jsp
> left in the system is welcome.jsp.
>
> Now - in some cases instead of getting the page I get the last few
> lines of content, the footer, copyright and the right menu only. It
> seems to depend on the size of the content tile.
>
> The log shows that the correct templates are being visited.
>
> It happens in two cases
>
> 1) The frontpage. Here content.vm is very large - but static (text in
>    the .vm itself)
>
> 2) A product page - here the product.vm is very small - but when
>    $product.description goes over a given size this triggers - however
>    - here the only difference is the size of the text returend from
>    the database.
>
> Here's how it looks when triggered (a little sanitized for names etc):
>
> ------------------------------------------------------------------------
>
> Last part of text from product database
> <!-- End product.vm -->
>
> <!-- Start foot.vm -->
> <p>For mer informasjon, vennligst kontakt <a
href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a></p>
> <!-- End foot.vm -->
>
> <!-- Start copyright.vm -->
> <div id="copyright">
> <hr />
> <p>Copyright &copy; 2004 ....</p>
> </div>
> <!-- End copyright.vm -->
>
> </div>
> </div>
> </div>
> <!-- Start productrightmenu.vm -->
> <div id="rightmenu">
> <h3>Produkter</h3>
>
> <ul>
>   <li><a href="/external/product.do">Produktmeny</a></li>
>       <li><a href="/external/product.do?id=2">product 1</a></li>
>       <li><a href="/external/product.do?id=4">product 2</a></li>
>       <li><a href="/external/product.do?id=6">product 3</a></li>
>       <li><a href="/external/product.do?id=5">product 4</a></li>
>       <li><a href="/external/product.do?id=1">product 5</a></li>
>       <li><a href="/external/product.do?id=3">product 6</a></li>
>       <li><a href="/external/product.do?id=7">product 7</a></li>
>   </ul>
>
> <hr />
>
> <h3>Events</h3>
> <p>
>
> </p>
>
> <hr />
>
> <h3>linker</h3>
> <p>
>       <a href="http://...";>Link 1</a>
>         <br/>
>         <a href="http://...";>Link 2</a>
>         <br/>
>         <a href="http://...";>Link 3</a>
>         <a href="http://...";>Link 4</a>
>   </p>
> </div>
> <!-- End productrightmenu.vm -->
>
> </body></html>
> ------------------------------------------------------------------------
>
> Note that by reducing the database content size I can get the whole
> page processed. Same happens if I reduce the amount of static text on
> the frontpage.
>
> Is there a size limitation to a velocity template used as a tile?
>
> -- 
> Chris Searle
> [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to