This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Languages and the fly likes Building object graphs of expressions written in template scripting languages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "Building object graphs of expressions written in template scripting languages" Watch "Building object graphs of expressions written in template scripting languages" New topic
Author

Building object graphs of expressions written in template scripting languages

Alec Swan
Ranch Hand

Joined: Feb 03, 2005
Posts: 39

I am working on a client-server application which allows the user to define application domain-specific expressions on the server. These expressions are then converted to a Java object tree and stored in the database in an XML format. The server then sends the expression to the client, who evaluates the expression in the context of its own domain and returns the result to the server.

I am looking for a tool which supports a template language, such as Velocity, for defining expressions and has an API that generates a Java object graph for a given expression. One such imaginary technology would be the one that converts a template language expression to JavaScript expression and then provides the API that converts the JavaScript expression to an object graph.

Does any one know about such a tool or technology?

Please let me know if you need me to further clarify the requirements.
[ April 28, 2008: Message edited by: Alec Swan ]
Alec Swan
Ranch Hand

Joined: Feb 03, 2005
Posts: 39

Since I haven't received any feedback I decided to simplify the question.

Does anybody know of a technology which supports a simple non-technical user-friendly template language, similar to Velocity, and has a public API to convert entered expressions to a Java object tree?

My goal is to avoid designing a proprietary language syntax and a parser for it.

Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Building object graphs of expressions written in template scripting languages
 
Similar Threads
Variable Expressions.
How do I make dynamic GRAPHS??
Tools using XML(sent from server) containing data to generate image on client side
Very Specialized and Highly paid tech..
Multiple Actions issue in JSF