This is an extremely simple Droplet with source, a config file, and a sample JSP. All the droplet does it transform a passed-in RepositoryItem into XML and dump it out. It would be handy for vending data to client-side logic in JavaScript or Flash, when you don’t want to write-up a full WebService.
You can download it all here.
The example JSP takes in a query parameter userId and generates the XML for the user profile with that id. For instance, if you call:
http://alita.local:8840/test/test.jsp?userId=930003
you get this……
I may extend it to serve out collections of items (currently if you nest it in an RQLForEach or similar, you get the line once per item. It's not much, but hey, this is my first ATG post:)
Devon[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]
Leave a Reply