Re: Charset (Struts and Velocity)

2005-02-14 Thread Shinobu Kawai
Hi Nathan,

   the VelocityViewServlet (largely in the interest of compatibility with
   VelocityServlet) does take the output.encoding property into account,
   but only if there is no charset specified within the
   default.contentType property.
 
  Didn't know that.  Maybe it needs to get it the docs.  :)
  ## Or is it already there?
 
 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.  Would it be comfortable in the Velocity developer guide?

Best regards,
-- Shinobu

--
Shinobu Kawai [EMAIL PROTECTED]

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



Re: Charset (Struts and Velocity)

2005-02-14 Thread Shinobu Kawai
Hi Markos,

  It's all Java stuff.  Java stores data in memory as Unicode, so
  everything going into Java must be converted into Unicode.  Currently,
  there is no way Java can tell whether a file is ascii or Greek or
  Japanese or whatever.  So, you have to Unicode escape the files.
  native2ascii makes life a bit easier.  ;)
 
 Ok this is true, and maybe we are getting a bit out of topic but, why cant I
 just save the file in UTF-8 format? Isn't that unicode? :/

The quick answer is, because that's how it's implemented.

 Also, while searching for a solution I came across the load(InputStream)
 method of java.util.Properties which has the value of charset hardcoded to
 8859_1 which made me wonder...

But I guess you already know that...  So you see, although Java
internally uses unicode, Properties only accepts ascii files for
external storage.  Of course, you always have the choice to hack
Struts.  ;)

Best regards,
-- Shinobu

--
Shinobu Kawai [EMAIL PROTECTED]

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



Re: lost '#'s inside #literal()/#end

2005-02-14 Thread Shinobu Kawai
Hi Geoffrey,

 I am using VTL (with VPP) to customize a portion of a Perl script.
 Since Perl code has a lot of dollar signs, I am using #literal()/#end to
 prevent Velocity from processing most of the file.  What I find is that
 single '#' characters that are not followed by alpha text are removed
 (inside #literal()/#end).

## snip

 Any suggestions (I'd be happy to try patching the Velocity source, but I
 had trouble making heads or tails of the parser engine)?

I haven't the time right now to look into this, but you might want to
file a bugzilla issue so it doesn't get forgotten.

## Actually, I didn't realize there was such a directive until now.  I
think we also need documentation.  :)

Best regards,
-- Shinobu

--
Shinobu Kawai [EMAIL PROTECTED]

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



Re: Charset (Struts and Velocity)

2005-02-14 Thread Nathan Bubna
On Mon, 14 Feb 2005 01:01:23 -0800, Shinobu Kawai
[EMAIL PROTECTED] wrote:
 Hi Nathan,
 
the VelocityViewServlet (largely in the interest of compatibility with
VelocityServlet) does take the output.encoding property into account,
but only if there is no charset specified within the
default.contentType property.
  
   Didn't know that.  Maybe it needs to get it the docs.  :)
   ## Or is it already there?
 
  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? :)

Would it be comfortable in the Velocity developer guide?

i dunno, but certainly not unless/until the VVS makes it in there too.

 Best regards,
 -- Shinobu
 
 --
 Shinobu Kawai [EMAIL PROTECTED]
 
 -
 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]



Re: Charset (Struts and Velocity)

2005-02-14 Thread Shinobu Kawai
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]



graphs using velocity

2005-02-14 Thread prasad neo
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]



Re: graphs using velocity

2005-02-14 Thread Shinobu Kawai
Hi prasad,

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.

What kind of graph did you have in mind?  If the format is not text,
chances are that you won't be able to use Velocity for it.

Best regards,
-- Shinobu

--
Shinobu Kawai [EMAIL PROTECTED]

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



Re: graphs using velocity

2005-02-14 Thread Will Glass-Husain
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]


Re: graphs using velocity

2005-02-14 Thread prasad neo
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

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



Re: graphs using velocity

2005-02-14 Thread Will Glass-Husain
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
-
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]


Re: graphs using velocity

2005-02-14 Thread prasad neo
  
I have seen these graphs but where i will get
these  macros, is it inbuild in velocity engine? or i
have to embeed it from outside.
   
how to build these varibles .



 --- 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
 
 

-
  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

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