Discussions

Web tier: servlets, JSP, Web frameworks: Can Javascript used to manipulate JSP object such as session?

  1. If yes, how to do that?
  2. JSP and it's objects are running on the server. JavaScript is running on the client (browser).
  3. The only way Javascript can interact with the server is by submitting data to it.

    One trick is to set up a hidden frameset in your page, with a "main frame" displaying your information and a "hidden frame" of 0 width. Your JavaScript can use the hidden frame to invoke various servlets, which can manipulate server data without changing the "main frame".