Velocity pagination

2007-12-13 Thread Bachi
Hi,

Can you please help me out to write pagination in velocity?

We are pulling the data from the data base using servlet now the page
displays all the records on a single page but here the requirement is only
10 records per page. I have googled for this code am getting the code using
jsp's. i need only usinfg servlets and velocity, html.

I AM NEW TO VELOCITY.

-- 
Vijay Bhaskar Makkena


Re: Logo Proposition for VelocityTools

2007-12-13 Thread Edward
Hi,

Thanks for giving me feedback. Heres an updated version:
[image: ApacheVelocityTools2.png picture by shadowpwner]
and a link for those who can't see it:
http://i226.photobucket.com/albums/dd53/shadowpwner/ApacheVelocityTools2.png

I tried to make the T look more like a T, but now to me it looks like a
tongue :P (See the resemblance?)

Also, here it is with the current template:

http://i226.photobucket.com/albums/dd53/shadowpwner/VeltoolsNewLogoPS2.png

The logo will probably be 50% of the current size, I enlarged it so you
could see the details.

Regards,

Edward
On Dec 11, 2007 8:57 PM, Nathan Bubna [EMAIL PROTECTED] wrote:

 Hey Edward,

 That's a pretty good start, though i confess that it took me a second
 to realize that the symbol was a V with a T inset.  The T is
 particularly hard to recognize.  Still, the symbol looks a lot
 snazzier than the current meager wrench (no offense, if you're still
 out there Tim Colson :).   I do think the color scheme could use some
 adjustment to fit better, as it clashes a bit right now.  I attached a
 screenshot of this draft logo in the velocitytools docs to show that.

 I think that's it for stylistic feedback.  I'm not really the best at
 that.  Functionally, the logo will need to be smaller and could
 probably stand to have some of the surrounding whitespace reduced to
 make better use of its space.

 Thanks for working on this!  I'm excited to have a nice logo for once! :)

 peace,
 nathan

 On Dec 11, 2007 7:17 PM, Edward [EMAIL PROTECTED] wrote:
  Hello All,
 
  I entered the Google Highly Open Participation Contest for the Velocity
  Tools logo.
 
  Here is my proposition so far:
 
  [image: ApacheVelocityTools.png picture by shadowpwner]
 
  In case the image doesn't show:
 
 
 http://i226.photobucket.com/albums/dd53/shadowpwner/ApacheVelocityTools.png
 
  Please note this will not be the final draft, but only something to
 start us
  off with.
 
  Please give helpful comments and suggestions, to improve my work.
 (Example:
  Too simple, colors don't match layout, etc.)
 
 
  Regards,
 
  Edward
 
 
 http://code.google.com/p/google-highly-open-participation-asf/issues/detail?id=52
 

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




-- 
Light travels faster than sound. This is why some people appear bright until
you hear them speak.


Question about Velocity deployment

2007-12-13 Thread mparas

Hi, there!

I have an app running on my JBoss server that uses Velocity templates to
display the HTML output.  I have another project I'm working on that also
uses Velocity to generate an HTML email (the actual web output uses JSP).  

For some reason, it seems that these two are in conflict with each other. 
Depending on which one is deployed first, the other won't load Velocity. 
I've tried deploying other Velocity projects I have, and they seem to work
fine, it's just these 2 that don't like each other.

I guess my first question is, for my 2nd project (HTML email generation),
does it need to be setup as a servlet?  If I don't set it up in my web.xml,
I'm unable to load the template (ResourceNotFoundException).  If I do set it
up as a servlet, then it can load the template, but then my first project is
messed up.

Any help would be much appreciated!
-- 
View this message in context: 
http://www.nabble.com/Question-about-Velocity-deployment-tp14320310p14320310.html
Sent from the Velocity - Dev mailing list archive at Nabble.com.


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



Re: Question about Velocity deployment

2007-12-13 Thread Christopher Schultz
mparas,

This is a how-to question, not a question about developing Velocity.

Please post questions like this to the Velocity users' mailing list,
instead of the developer list.

FWIW, you probably have deployed velocity.jar into some shared
ClassLoader rather than within your webapp's WEB-INF/lib directory.

Thanks,
-chris

mparas wrote:
 Hi, there!
 
 I have an app running on my JBoss server that uses Velocity templates to
 display the HTML output.  I have another project I'm working on that also
 uses Velocity to generate an HTML email (the actual web output uses JSP).  
 
 For some reason, it seems that these two are in conflict with each other. 
 Depending on which one is deployed first, the other won't load Velocity. 
 I've tried deploying other Velocity projects I have, and they seem to work
 fine, it's just these 2 that don't like each other.
 
 I guess my first question is, for my 2nd project (HTML email generation),
 does it need to be setup as a servlet?  If I don't set it up in my web.xml,
 I'm unable to load the template (ResourceNotFoundException).  If I do set it
 up as a servlet, then it can load the template, but then my first project is
 messed up.
 
 Any help would be much appreciated!



signature.asc
Description: OpenPGP digital signature


[jira] Updated: (VELOCITY-576) Move the section about converting to strings

2007-12-13 Thread Spencer Davis (JIRA)

 [ 
https://issues.apache.org/jira/browse/VELOCITY-576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Spencer Davis updated VELOCITY-576:
---

Summary: Move the section about converting to strings  (was: Move the 
section about strings being converted)

 Move the section about converting to strings
 

 Key: VELOCITY-576
 URL: https://issues.apache.org/jira/browse/VELOCITY-576
 Project: Velocity
  Issue Type: Improvement
  Components: Documentation
Reporter: Spencer Davis
Priority: Minor

 In the References section of the User Guide it says:
 Everything coming to and from a reference is treated as a String object. If 
 there is an object that 
 represents $foo (such as an Integer object), then Velocity will call its 
 .toString() method to resolve 
 the object into a String.
 This would make more sense if it was at the end of the section on references 
 so that the different
 types of objects are introduced before this is.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]