Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to get data from Remote Servlet?

    - the SmartGWT 2.0 (not SmartGWTEE)
    - Eclipse helio
    - Google browser

    I want to get the String data (XML/json format)(not a XML/json file) from Sever-side, how can i do?can I use setDataURL(/servlet) directly?

    thanks!

    #2
    I assume you are using Datasource.
    All you have to do is prepare suitable xml document (e.g by using jdom library) and then use (in jdom case)
    Code:
    XMLOutputter.output(respDoc, response.getWriter)
    in your servlet
    Of course response document must have proper structure to your datasource xpath
    regards

    Comment

    Working...
    X