File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Velocity for interactive applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Velocity for interactive applications" Watch "Velocity for interactive applications" New topic
Author

Velocity for interactive applications

Carlos M Rodriguez
Greenhorn

Joined: Oct 27, 2005
Posts: 4
Hi folks:

I had a couple of quick questions (actually, mainly one question) I was hoping someone with knowledge of Velocity could answer.

From what I have been reading, Velocity essentially provides a markup or template language which is then consumed by an engine which can then fill in the references and conditional statements to generate HTML by using the declared references to java objects. Which essentially means that, like a JSP, this is all stuff that happens before the page is rendered.

Does Velocity (or its related projects) support any client->java method mapping, or any action mapping at all? I'm looking for the kind of functionality where the framework provides you with either an automatic mapping or establishes conventions that make mapping mouseclicks to java method calls (maybe involving AJAX, maybe not) easy.

-carlos
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Mouse clicks? Velocity doesn't even know what a mouse *is*, so without knowing more, I don't really know how to answer your question. JSP doesn't know what a mouse is either--both take a context and a template and make text out of it. What are you really trying to do?
Carlos M Rodriguez
Greenhorn

Joined: Oct 27, 2005
Posts: 4
Maybe I should have explained myself in simpler terms, but I just needed to know if Velocity had any facilities to send UI events to the java side from the Javascript side (action mappings, command mapping, what have you, think Wicket, DWR, JSF, etc). But it has become clear to me that this is completely outside the scope for Velocity.

Thank you.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Correct. Since it can create anything, you could obviously wrap that stuff up, but there's certainly nothing out of the box.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Velocity for interactive applications
 
Similar Threads
spring vs ejb
Velosurf
Velocity Vs JSTL
B&S Stub errors running in network client mode
Help me eradicate xsl from my system