Loading ...
Sorry, an error occurred while loading the content.

1023Re: [json] Sharing Java objects with JavaScript

Expand Messages
  • Martin Cooper
    May 19, 2008
    • 0 Attachment
      On Thu, May 15, 2008 at 6:17 PM, Phil <randomnoise@...> wrote:

      > I'm upgrading a web page so that it uses ajax. I'm pretty much done,
      > except for one thing. If I have a value determined in a servlet that I
      > need to use in JavaScript how can I use JSON to do this for me? EG; I'm
      > setting a value in the servlet that controls whether or not I build a
      > SELECT control in JavaScript using the DOM methods. How do I access
      > that value in the JS?


      Have you looked at DWR? It's not an explicit JSON solution, but it's almost
      certainly the most widely used library for integrating JavaScript on the
      client with Java on the server.

      http://getahead.org/dwr/

      --
      Martin Cooper



      >
      > TIA...
      >
      >
      > [Non-text portions of this message have been removed]
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
      >


      [Non-text portions of this message have been removed]
    • Show all 12 messages in this topic