yeah, we ran into that. i imagine it is due to the order macros are added.
while it never seemed to cause any problems, we were able to eschew the
reported errors by rearranging the order in which our macros are declared.
but that doesn't appear possible with the example you give.
Nathan Bubna
a ' in it)
no kidding! that's why you wouldn't do that! the correct way would be
#set( $foo = This \#foo() has a ' in it )
:-)
Nathan Bubna
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
)
is equivalent to
#set( $bar = 2 )
#set( $woogie = $tool.returnArbitraryObject() )
#set( $foo = 'whatever' : $bar : $woogie )
what can i say? i like that best. i'll leave out arguments as i think
pretty much everything's been said.
Nathan Bubna
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto
Geir said:
Why don't you like ?
eh, various reasons have already been thrown out, but personally, it's the
similarity to in velocity, similarity to bit-wise in java, general
aesthetics (i think : looks nicer), and : is easier/quicker to type. (not
necessarily in that order :-)
Nathan Bubna
for me. :-)
good, but feel free to post notice of minor issues too.
But an 'official' 1.0 release would prolly make other folks more warm
and fuzzy toward the code.
it's true. and it also tends to generate
visibility/publicity/sense-of-value for a project.
Nathan Bubna
[EMAIL PROTECTED
question.
if anything, this sounds like it could be a framework question.
what framework are you using? their mailing list would probably be a better
place for this question.
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e
release of
velocity-tools. it may be that somethings will go into a contrib folder
before then though. but, that's as specific as we can get with regards to
when. jakarta projects don't run on deadlines or set timeframes.
Nathan Bubna
[EMAIL PROTECTED
to build everything.
to browse the code first, go to:
http://cvs.apache.org/viewcvs/jakarta-velocity-tools/
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
beloved product.
:-)
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
);
you might also look at how the VelocityViewServlet does it.
Do I call WebappLoader directly?
no, RuntimeSingleton.getTemplate(foo.vm) should use the configured
resource loader automatically.
Nathan Bubna
[EMAIL PROTECTED
up for discussion and
development.
http://nagoya.apache.org/wiki/apachewiki.cgi?VelocityProjectPages
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-4.1-doc/appdev/index.html
have fun! :)
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
you in. where/how is your velocity context set up? you
seem to be using jetspeed, which i don't know a thing about. we can try to
help you here (someone else here may know jetspeed), but you might get better
help on the jetspeed user list.
Nathan Bubna
[EMAIL PROTECTED
the WebappLoader for an example of how to make it work.
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
this is not an issue.
Thanks for responding to my question.
you're welcome! and if/when struts-menu is ready-to-go for VelocityStruts
users, be sure to let us know over here. i'm curious about it. :)
Nathan Bubna
[EMAIL PROTECTED
message.
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
readable to the human eye than the latter. i'm more interested in aesthetics
and simplicity than i am about making things easy on the parser.
there wouldn't be problem.
...
but there isn't problem. ;)
/action
Nathan Bubna
[EMAIL PROTECTED
Geir Magnusson Jr said:
On Dec 29, 2003, at 9:47 PM, Nathan Bubna wrote:
Geir Magnusson Jr said:
I'm still not convinced that there are enough of these to warrant
adding to VTL.
agreed. and on that, i'd rather have things stay as they are than add
the
$isEmpty($array) syntax
is with configuring and using Struts with modules than it is with using the
ErrorsTool.
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
and documentation.
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
? or do you have something against building
community between related projects?
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Source Code: http://jakarta.apache.org/site/sourceindex.cgi
For more information on Jakarta Velocity Tools, see
http://jakarta.apache.org/velocity/tools/index.html
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL
/03/07/17/1425228.shtml?tid=148tid=185
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
'
org.apache.velocity.exception.ResourceNotFoundException:
Unable to find resource '/index.htm'
...
and then these cool errors should disappear!
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
://jakarta.apache.org/velocity/tools/generic/
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
said, i threw it together hastily (i.e. in about 10 minutes)
and hadn't even tried compiling yet. sorry. :-/
I will send out the final code once I have tested it.
...
that'd be great. thanks!
Nathan Bubna
[EMAIL PROTECTED
me to it,
i'll see if i can whip up a patch for you today or this weekend. :)
On Apr 16, 2004, at 3:05 PM, Nathan Bubna wrote:
Gupta, Arindam said:
Received the following errors while compiling:
...
D:\VelocitySource\jakarta-
velocity\contrib\temporary\veltag\src\java\org
\apache
messages should be output there.
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
is only in this
email), then you might double check that $orderLine.quantity is actually
returning a string.
And is there a different way I should be doing this?
apart from the capitalization typo, it looks like a good pattern.
Nathan Bubna
[EMAIL PROTECTED
.
Nathan Bubna
[EMAIL PROTECTED]
I needed this, so I've pulled out the critera/query/search stuff from
the AbstractSearchTool, and turned it into an AbstractPagerTool.
cool.
It works the same, you just need to do something like:
$pager.setResults(myList)
to give it a List to page through
is or else your getLogin() method is returning null. can you assure
us that the latter is not the case?
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
specialist33 said:
Nathan Bubna wrote:
specialist33 said:
I'm getting an incomprehensible is not a valid ref error. I've spent
some hours trying to solve it, but I'm not being helped by the fact that
I cannot seem to find a way of getting velocity to tell me what WOULD be
a valid
, it was just the null that was causing the whole problem!
Thanks.
glad to help. :)
Nathan Bubna wrote:
workings of your app. so, if you have a reference (whether $ref or
$obj.ref)
that you can reasonably expect to return or be null, then you should be
using
silent notation. this is essentially
below. have you?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Nathan Bubna
[EMAIL PROTECTED
)
#set( $foo = mymacro( $arg1 ) )
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Nathan Green said:
For a tool to use at the application level, use RenderTool. The other
Nathan (Bubna)'s javadoc comments are pretty explicit in both tools,
though they are sort of a footnote... Perhaps the following change
could be made to ViewRenderTool?
public void init(Object obj
/commons/lang/api/org/apache/commons/lang/StringEscapeUtils.html
has both escaping and unescaping for xml entities. should do the trick for
you.
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED
-time velocity user (getting close to 4
years). so i've been around the lists and the code long enough to pick up a
few useful tricks and tips. :)
Nathan Bubna
[EMAIL PROTECTED]
- Original Message -
From: Nathan Bubna [EMAIL PROTECTED]
To: Velocity Users List [EMAIL PROTECTED]
Sent
to really go
after this, i don't anticipate much action anytime soon.
Nathan Bubna
[EMAIL PROTECTED]
Neeme Praks said:
Hi all!
Have we got any further on this issue?
As the bugzilla issue seems to be open, I guess not?
Could we decide something? At least then we could do a patch.
Rgds,
Neeme
at all.
and
$foo.thisIsNonStandard() cannot be shortened at all.
if the user guide suggests otherwise, i'd recommend submitting a bugzilla
report and a patch to clarify/fix things.
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe
i suppose it would help to include a link: :)
http://wiki.apache.org/jakarta-velocity/VelocityWhitespaceGobbling
Nathan Bubna
[EMAIL PROTECTED]
Nathan Bubna said:
i once tried to get this discussion going on the wiki so that it could be
better organized and preserved in order for action
sure there already is a working URLResourceLoader out there in the
contrib or geir's whiteboard stuff (probably the latter). search the list
archives or even just google and you can probably find it pretty easily.
Nathan Bubna
[EMAIL PROTECTED
= $date.format('M/d/',$minDateDisp)) ## Min Date
Short String
hope this helps.
Nathan Bubna
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I find #if( $!car == ) to be the most reliable null test.
On Thu, 2 Dec 2004 14:47:29 -0500, Terry Steichen [EMAIL PROTECTED] wrote:
I think you can also do something like this:
#if($car $car == )
That is, if $car is defined and has no value (ie, null)
- Original Message -
On Thu, 09 Dec 2004 08:53:36 +0100, Carsten Heyl [EMAIL PROTECTED] wrote:
Christoph Reck wrote:
...
Check the Wiki page
http://wiki.apache.org/jakarta-velocity/VelocityWhitespaceGobbling
on this subject. The so called VelocityWhitespaceGobbleChristophsWay
should be called
an Object parameter seems like a good solution.
WILL
- Original Message -
From: Nathan Bubna [EMAIL PROTECTED]
To: Velocity Users List [EMAIL PROTECTED]
Sent: Wednesday, December 08, 2004 5:02 PM
Subject: Re: EscapeTool (and velocity-tool best practices)
On Wed, 08 Dec 2004
i highly recommend you try out the VelocityTools project.
http://jakarta.apache.org/velocity/tools/index.html
the distribution comes with several examples apps that are packaged as
WARs. all you need to do is drop them into Tomcat's webapps directory
and they're ready to run.
they're easier to
On Wed, 5 Jan 2005 21:33:45 +0900, Shinobu Kawai
[EMAIL PROTECTED] wrote:
Hi Sato,
I'm using VelocityView and am very happy it's much easier creating
dynamic HTML than JSP and custom tags.
Agreed. :)
Now I need to use some my own implementation of ServletToolboxRuleSet
(which is
in VTL, long and Long are the same. have you tried just using
DateTool.toDate(Long) with the long?
On Thu, 06 Jan 2005 14:50:34 -0500, Mike Kienenberger
[EMAIL PROTECTED] wrote:
I'm trying to figure out how to convert File.lastModified (type long) into a
formatted date in Velocity.
It
yeah, my understanding is that it is a function of java reflection
itself, rather than an intentional thing done by Velocity. but i
could be wrong...
On Thu, 06 Jan 2005 15:39:53 -0500, Mike Kienenberger
[EMAIL PROTECTED] wrote:
Nathan Bubna [EMAIL PROTECTED] wrote:
in VTL, long and Long
yeah, use quiet notation if you don't want such warnings. the idea is
that any reference that is value-less and not expected to possibly be
null (i.e. not specified with $!quiet), must be an error, because the
template designer must be expecting it to have a value.
On Wed, 26 Jan 2005 19:56:21
if you just want to evaluate strings, use the evaluate() method of
Velocity or VelocityEngine. If you actually want Template objects,
that's a little trickier. However, I do remember seeing a
StringResourceLoader being contributed sometime back for this purpose,
but i'm not sure it ever made it
or you can just use quiet notation:
$!mymap.put('label.name', 'manish')
On Mon, 31 Jan 2005 19:58:31 +0530, Manish [EMAIL PROTECTED] wrote:
Never mind, I got it.
It was printing it because return value for all these map.put operations was
NULL.
call to clear() wasn't printed because it is
Sure. velocity is designed to be a generic template language. so
while it is often used to generate html, you can use it to generate
any text-based file type. for instance, i've used it to export
spreadsheet data as tab-delimited files.
when it comes to using a servlet to do it, you will not
just to make sure you guys know, the VelocityServlet is deprecated and
should be removed following the release of Velocity 1.5. it's
replacement is the VelocityViewServlet in the VelocityTools project.
so if you have ideas for improvements or contributions, be sure to
make them regarding that
hmm. i've not had problems with invalidated sessions before. can you
give us some of that stack trace? i wanna see where this is
happening.
On Wed, 9 Feb 2005 11:11:38 -, Steve O'Hara
[EMAIL PROTECTED] wrote:
I've taken the advice offered by everyone to switch to using the
the relevant code (in veltools 1.1's StrutsUtils) is doing the following:
resources = (MessageResources) request.getAttribute(bundle +
moduleConfig.getPrefix());
if (resources == null) {
resources = (MessageResources) app.getAttribute(bundle +
is must be causing the
problem.
So...does that mean that I have to keep a record of every possible entry made
to the request? How do I go on about this?
Thanks in advance,
Markos Charatzas
On Wednesday 09 February 2005 19:25, Nathan Bubna wrote:
the relevant code (in veltools 1.1's
disclaimeri've only halfheartedly read this thread and personally
never use non-default charsets/disclaimer
have you tried setting the default.contentType property that the VVS
looks for?
e.g. default.contentType=text/html; charset=ISO-8859-1
i'm half-doubting that's the problem, but it
? hmm. ok, if that works best for you, but just so you know,
that's not very MVC. :) and out of curiousity, where were you doing
that before?
Steve
-Original Message-
From: Nathan Bubna [mailto:[EMAIL PROTECTED]
Sent: 10 February 2005 18:56
To: [EMAIL PROTECTED]
Subject: Re
,v 1.6 from
VelTools 1.1 final]
-Mike
-Original Message-
From: Nathan Bubna [mailto:[EMAIL PROTECTED]
Sent: 11 February 2005 01:18
To: [EMAIL PROTECTED]
Cc: Velocity Users List
Subject: Re: VelocityViewServlet Differences with VelocityServlet
On Fri, 11 Feb 2005 01
On Fri, 11 Feb 2005 07:45:19 -0800, Shinobu Kawai
[EMAIL PROTECTED] wrote:
...
Still I cannot understand why setting the output.encoding to ISO-8859-7 in
velocity.properties has that effect I mentioned earlier.
Even more since you pointed out that the output.encoding doesn't matter
On Fri, 11 Feb 2005 10:15:20 +0200, Markos Charatzas [EMAIL PROTECTED] wrote:
On Thursday 10 February 2005 17:50, Nathan Bubna wrote:
i only rarely put things directly into the
request myself. i mostly use tools to access my request scoped data.
those are easy enough to keep track of in my
On Fri, 11 Feb 2005 13:59:38 -0800, Shinobu Kawai
[EMAIL PROTECTED] wrote:
Hi Nathan,
Still I cannot understand why setting the output.encoding to ISO-8859-7
in
velocity.properties has that effect I mentioned earlier.
Even more since you pointed out that the output.encoding
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
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
On Thu, 17 Feb 2005 17:30:02 +0200, Florin Vancea [EMAIL PROTECTED] wrote:
AFAIR, it was the _only_ way to get things working :)
I did some minor modifications to the -tools source while going my way. As
soon as I get to breathe (as I'm really swamped now), I'll check if they are
worth
beyond just the WebappLoader, the VelocityTools project is also home
to the VelocityViewServlet (designated successor of the deprecated
VelocityServlet), and several simple, drop-and-go example apps you can
play with until you get things working.
basically, if you're developing a webapp with
personally, i think Markos gave you the best answer already. you
should use the WebappLoader from the VelocityTools project. The
FileResourceLoader that Velocity uses by default is not very webapp
friendly. there are ways to get it working in web applications, but
in general they are not
i don't know how slow/fast that goes, but you could always try a
different archive...
http://www.mail-archive.com/velocity-user%40jakarta.apache.org/
http://marc.theaimsgroup.com/?l=velocity-userr=1b=200502w=2
On Tue, 22 Feb 2005 06:27:20 -0800, Michael Salmon [EMAIL PROTECTED] wrote:
Does
i don't really know anything about Cactus, but this code snippet
hardly seems representative of a sensible way to test a servlet.
surely they must have a better setup than this? or am i just getting
the wrong impression because you've posted so little code?
anyway, the VelocityViewServlet
agreed. this is not my preferred escaping system either, but we can't
just go changing it now. i can't think of any way to make such a
change backwards compatible.
the best that could be done (if someone is interested in doing it) in
1.x, would be to make escaping behavior configurable via a
On Sat, 26 Feb 2005 10:34:21 +0100, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
On 25 Feb 2005 at 10:33, Nathan Bubna wrote:
anyway, the VelocityViewServlet requires a good bit more than just the
handleRequest() method to run. first it will need to be init'ed
(going thru init
that's very strange. what you're doing looks fine to me and
definitely should work. and no, it shouldn't make a difference
whether the methods are static or not. they just need to be public
methods in public classes. so, the first thing i suggest
double-checking is that the Constants class is
On Wed, 2 Mar 2005 22:33:47 -0800, Shinobu Kawai
[EMAIL PROTECTED] wrote:
Hi Ravikanth,
I would like to create a object reference in template using new
keyword like what we do in java
String obj = new String()
cringenot a best practice!/cringe :)
I need to put RenderTool instance in
perhaps as a workaround, try
#set( $D = '$' )
${D}c1{whatever}
disclaimeri didn't test it myself/disclaimer
On Mar 31, 2005 5:19 PM, Will Glass-Husain [EMAIL PROTECTED] wrote:
Is that the same as this?
http://issues.apache.org/bugzilla/show_bug.cgi?id=28528
WILL
- Original
the VelocityViewServlet uses a webapp resource loader, not the
FileResourceLoader. try setting your velocity.properties to:
webapp.resource.loader.path = /WEB-INF/templates
On 4/13/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hey Will,
Sorry about using the same Subject line. Trying to
oops, meant to keep this on list...
On 4/13/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
This is my entire velocity.properties file below. Note that here I
show both resource loaders being used. I tried commenting out the
file.resource.loader.path one but I just get the same error anyway.
On 4/13/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Ug. No go yet assuming I should have compiled off of trunk.
i'm not sure what that sentence means. but the VelocityViewServlet
and friends should work just fine with any relatively modern version
of Velocity. but, out of curiosity,
out of curiousity, what happens when you just remove the
file.resource.loader.path (and other file.resource.loader props) and
add no replacements?
i have a feeling that it will work just as it does with them. (i.e.
without a resource.loader=file property, i don't think the VVS is
using those
i've never used the web.xml mime-setting stuff much and don't know
much about it. i suggest you try to override the setContentType
method in your subclass to set the file type according to the
requested file's extension.
On 5/6/05, Chris Searle [EMAIL PROTECTED] wrote:
Was reading thru the
if you are using the TilesTool, note that it extends ImportSupport
which uses a custom HttpServletResponseWrapper (an internal class
called ImportResponseWrapper). if the getWriter() method is called on
that wrapper instead of getOutputStream(), then the wrapper will use a
StringWriter to hold
case, then please consider sharing. :)
On 5/10/05, Nathan Bubna [EMAIL PROTECTED] wrote:
if you are using the TilesTool, note that it extends ImportSupport
which uses a custom HttpServletResponseWrapper (an internal class
called ImportResponseWrapper). if the getWriter() method is called
. What would you suggest I do?
Can I easily override a method in VelocityViewServlet that fixes this problem?
-L
On Tue, May 10, 2005 at 10:32:40AM -0700, Nathan Bubna wrote:
if you are using the TilesTool, note that it extends ImportSupport
which uses a custom HttpServletResponseWrapper
thoroughly confused!
-L
On Tue, May 10, 2005 at 11:31:17AM -0700, Nathan Bubna wrote:
hmm. yeah, i don't know what to do then. without some good profiling
to see what is hogging the memory, it's hard to say. have you tried
just requesting the template in question directly with the VVS
you should be able to configure your velocity.properties as you would
with any other velocity application. yours will look someting like
resource.loader=webapp,classpath
webapp.resource.loader.class=...WebappLoader
classpath.resource.loader.class=...ClasspathResourceLoader
and so on...
be sure
On 6/2/05, Paul Goepfert [EMAIL PROTECTED] wrote:
...
web-app
display-namePersonal Information/display-name
servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-parm
patches would help :)
On 6/7/05, Max Rydahl Andersen [EMAIL PROTECTED] wrote:
On Mon, 06 Jun 2005 20:17:38 +0200, Shinobu Kawai
[EMAIL PROTECTED] wrote:
Hi max,
Any particular reason why velocity only do Class.forName() where
it should first look in thread context classloader and THEN
both. :)
On 6/7/05, Max Rydahl Andersen [EMAIL PROTECTED] wrote:
On Tue, 07 Jun 2005 17:13:01 +0200, Nathan Bubna [EMAIL PROTECTED] wrote:
patches would help :)
yes - but before doing so just wanted to know if there were any argument
for
how it is done now ,)
-max
On 6/7/05, Max
The varying automatic approaches described on that velocity wiki page
are proposed *defaults*. Having a default is unavoidable, and to
answer your rhetorical questions: no, i don't think those varying
automatic approaches are strict or drastic; they're the most common
sense (with the exception of
eh, i haven't spent much time looking at JSF yet, but Craig McClanahan
has always given me the impression that you can use the Velocity as a
renderer for JSF if you want (JSF+Velocity vs. JSF+JSP) and that
neither can really replace or exclude the other.
as for cases that Velocity is better, i
why don't you take a look at the VelocityViewServlet in the
VelocityTools project?
http://jakarta.apache.org/velocity/tools/
i would recommend just using it to serve web content with Velocity, as
it is designed to make that as easy as possible. but you can at least
look at the servlet's source
or much as you like.
:)
Any suggestions?
Thanks
Matt
-Ursprngliche Nachricht-
Von: Nathan Bubna [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 19. Juni 2005 11:40
An: Velocity Users List
Betreff: Re: Velocity vs. JSF
eh, i haven't spent much time looking at JSF
On 6/19/05, Paul Goepfert [EMAIL PROTECTED] wrote:
I have written a servlet that extends from VelocityServlet. I am not
sure how to intergrate it into my velocity/struts app. As of now all
my actions such as moving from page to page are handled by struts
using the VelStruts tool,
it's not working for you because that's not what velocity.properties
is designed for. it's meant for configuration of the Velocity engine,
not for access during its use. you will have to retrieve those values
yourself and add them to your context, or else code up some sneaky
means to automate
the VelocityTools project
(http://jakarta.apache.org/velocity/tools/index.html) is designed to
make web publishing with Velocity (and Struts, if you want) much
easier. i've never heard of the VMServlet, but the VelocityServlet
that ships with the core velocity library is deprecated in favor of
what version of VelocityTools are you using? and are you trying to
initialize the Velocity singleton within the same application as the
VelocityViewServlet?
have you tried initializing a VelocityEngine instead of the singleton?
On 6/27/05, Leo Asanov [EMAIL PROTECTED] wrote:
Hi!
What is the
have you trie (or are you using) the VelocityLayoutServlet that is
part of VelocityTools?
http://jakarta.apache.org/velocity/tools/view/layoutservlet.html
On 7/18/05, Bayarsaikhan VOLODYA [EMAIL PROTECTED] wrote:
Hi all,
I am trying to write an error page to catch all exceptions that are
need a bit more info than that...
are you getting error messages in your logs at startup or elsewhere
that look pertinent?
what do you mean by does not render correctly?
what are the tools in your toolbox.xml?
showing us your toolbox.xml and web.xml might also be useful.
On 7/18/05, Paul
can't you just configure an index.vm page in your web.xml?
On 7/13/05, Withers John Z [EMAIL PROTECTED] wrote:
Barbara,
Thanks for the information.
Perhaps my application is not well suited to use the VelocityViewServlet. I
was hoping to use it as a base to get 'free' access to the tool
1 - 100 of 330 matches
Mail list logo