• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Building object graphs of expressions written in template scripting languages

 
Ranch Hand
Posts: 41
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 41
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic