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 ]