Re: graphs using velocity

2005-02-15 Thread Will Glass-Husain
Hi Prasad,
This probably won't help you, as these are are custom VelocityMacros we 
include in our system. (an online simulation engine called Forio Broadcast). 
The source is not available, but the macros are fairly simple.  (they just 
translate names of variables into a img tag with a long URL).  Really, 
they're just a convenience.

Still, if you're interested you can read our documentation.  Revenue and 
Costs are simulation variables specific to our particular system 
(basically, they are a series of double values arrayed over time).
http://www.forio.com/broadcastdocs/creating_interfaces/how_to_create_graphs.htm

For more info on Velocity macros, read the Velocity docs.
http://jakarta.apache.org/velocity/user-guide.html#Velocimacros
For more info on how to create your own graph servlet, you'll have to read 
the docs of the third-party graphing library you end up choosing.

WILL

- Original Message - 
From: prasad neo [EMAIL PROTECTED]
To: Velocity Users List velocity-user@jakarta.apache.org
Sent: Monday, February 14, 2005 11:44 PM
Subject: Re: graphs using velocity


  how to build these varibles revenue and Costs. what
is its datatype.
  Is there any documentation for these macros if it
is then please send me links.

--- Will Glass-Husain [EMAIL PROTECTED] wrote:
PS.  One nice way Velocity can help with graphs is
through macros.  If you
end up with a long complicated img url to generate
a graph, abstract this
with a macro.  Our Velocity-based system has a
number of graph related
macros.
http://www.forio.com/broadcastdocs/creating_interfaces/how_to_create_graphs.htm
For example, in our system the macro
#LineGraph ([Revenue, Costs] 400 300)
generates the text
img
src=graph?FD_rand=1861FD_graph=1VariableName=RevenueVariableName=CostsWidth=400Height=300
width=400 height=300
which instructs our custom-written graph servlet to
generate a graph of the
variables revenue and costs over time (in a GIF
image sized 400x300).
Best,
WILL
- Original Message - 
From: prasad neo [EMAIL PROTECTED]
To: Velocity Users List
velocity-user@jakarta.apache.org
Sent: Monday, February 14, 2005 11:15 PM
Subject: Re: graphs using velocity

 thanks  Will Glass-Husain.
 I will try jfree tool.
 ok bye



 --- Will Glass-Husain [EMAIL PROTECTED] wrote:
 Hi,

 I have a Velocity based web application that
 includes graphs.  I don't use
 velocity to generate graphs, I use a third party
 graphing app.  My web page
 includes a img tag with a special URL which
displays
 a JPEG or GIF graph.

 There's a couple of different libraries that can
 generate the graphs.  You
 might try JFreeChart if you're looking for a free
 library.  Personally, I
 really like the commercial but inexpensive
package
 KavaCharts (includes both
 server and client side components).  There's also
a
 number of much more
 expensive server-side tools.

 WILL

 - Original Message - 
 From: prasad neo [EMAIL PROTECTED]
 To: Velocity Users List
 velocity-user@jakarta.apache.org; Shinobu
 Kawai [EMAIL PROTECTED]
 Sent: Monday, February 14, 2005 10:53 PM
 Subject: graphs using velocity


  Hii all
 Can anybody tell me way to generate
graphs
  using velocity.
 In my project i need to generate all
types
 of
  graphs using my database I am using Turbine
 framework
  and torque for database and velocity as
template
  engine.
 
  so please help me
 
 
 
 
 
 
 
 
 
 
 
  --- Shinobu Kawai [EMAIL PROTECTED]
wrote:
  Hi Nathan,
 
 no, i don't think it's documented
anywhere.
  any good idea for where
 such a note should go?
   
I would definitely want one in the VVS
 javadoc
  and/or view tool top
page.
  
   wanna make a patch? :)
 
  I'll file a bugzilla issue for you.  ;)
  ## I'll make the patch if I have some extra
time.
 
   Would it be comfortable in the Velocity
 developer
  guide?
  
   i dunno, but certainly not unless/until the
VVS
  makes it in there too.
 
  Figured you would say that.  :)
 
  Best regards,
  -- Shinobu
 
  --
  Shinobu Kawai [EMAIL PROTECTED]
 
 
 



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



  Yahoo! India Matrimony: Find your life partner
 online
  Go to: http://yahoo.shaadi.com/india-matrimony
 
 


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




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





 Yahoo! India Matrimony: Find your life partner
online
 Go to: http://yahoo.shaadi.com/india-matrimony


-
 

RE: Velocity logo ideas / poll

2005-02-15 Thread Tim Colson \(tcolson\)
The current tally for the logo votes:

13 votes
15% 2: leave it alone
54% 7: use the new logo
31% 4: ask for more logo ideas

If you want to vote, please hit the link below before Will makes the
decision. 

Cheers,
Timo

 -Original Message-
 From: Tim Colson (tcolson) 
 Sent: Tuesday, February 08, 2005 1:54 PM
 To: Velocity Users List
 Subject: Velocity logo ideas / poll
 
 Howdy Gang -
   
 Mr. Will suggested website and doc changes on the Velocity Dev list. I
 replied with more ideas that I hope might make the site easier to
 read/print. 
 
 One idea - shrink the Velocity logo so the website will view 
 and print a
 little bit easier (Firefox will auto-scale printing, but not IE...and
 both force a horizontal scroll while just viewing -- compare with the
 Velocity Tools site with the smaller logo.)
  
 I dug out the files I used for the Velocity Tools logo, and 
 while I was
 messing around, I figured it would be cool to have an icon too. :-)
 
 I came up with an idea, but it's a community so of course feedback is
 always welcome and sought out.
 
 I couldn't post images on the 'official' Velocity wiki -- so 
 compare the
 logos here:
 http://confluence.atlassian.com/display/TEST/Velocity+Logo+Ideas+Two
 
 And vote in the poll here:
 http://www.pollmonkey.com/p.asp?U=5712018006
 
 Cheers,
 Timo
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Resource loader path problems!!! Never easy...

2005-02-15 Thread Manish
I am using struts+velocity and we keep all VMs files in our webapps
directory, and it works.
Now I need to have a separate directory XYZ to store some velocity
templates away from rest of the templates, but when I create this XYZ
directory and move my selected templates there, I get exception - Resource
Not Found. What can I do to make sure that ALL templates are available, the
original ones in webapps directory , and these templates which are under
XYZ directory under same webapps directory. How to do that?

TIA,
- Manish



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



Re: Resource loader path problems!!! Never easy...

2005-02-15 Thread Nathan Bubna
you probably just need to add the path to the new directory to your
foo.resource.loader.path property in your velocity properties.  most
resource loaders should accept a comma delimited list for the path
property.

if that doesn't work, answer the following questions to help us help you...
what resource loader(s) are you using?
what are your resource loader properties?
what is the path for the new directory relative to your old one?


On Wed, 16 Feb 2005 10:12:27 +0530, Manish [EMAIL PROTECTED] wrote:
 I am using struts+velocity and we keep all VMs files in our webapps
 directory, and it works.
 Now I need to have a separate directory XYZ to store some velocity
 templates away from rest of the templates, but when I create this XYZ
 directory and move my selected templates there, I get exception - Resource
 Not Found. What can I do to make sure that ALL templates are available, the
 original ones in webapps directory , and these templates which are under
 XYZ directory under same webapps directory. How to do that?
 
 TIA,
 - Manish
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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