Hi,

What would be the best approach to have a service render html as a response
to an ajax request?
Basically I'm using a markup editor called markitup that provides an preview
feature. The preview feature needs an url to send the content that has been
inserted (in the markdown syntax) so that it gets processed server side,
sending back an html response that can be used as a preview.
I have seen that tapestry has the StreamReponse class but I cant figure out
what url I should provide to make the call...
Should I implement a component for this? I dont want to duplicate code in
all the pages I would be using this, it has to be reusable.
I could do a simple servlet I guess or even use restful webservices as
described here http://stackoverflow.com/questions/2765178/tapestry-restwhich
seems a bit overkill but I was hoping there was a tapestry way of
doing this. If it can be useful I'm using the 5.2.4 version.
Thanks,

Arthur

Reply via email to