my dog learned polymorphism*
The moose likes Servlets and the fly likes how to limit servlet response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to limit servlet response" Watch "how to limit servlet response" New topic
Author

how to limit servlet response

Rajiv Agarwal
Greenhorn

Joined: Sep 09, 2003
Posts: 1
I have a page in dhtml,javascript on the client site. On user interaction there will be
changes on the page (dhtml). On the server side i want to maintain a XML DOM tree
for the page and make changes to it reflecting the client side changes.
These would be like changing attributes of elements.Add ,delete elements etc.

soln : The client page in a JSP ,maintain the DOM tree on the server in a servlet.
problem is that I from the servlet I only want a response like update successful or failed.
i do not want the page to change on the client side.
Any suggestion ? Please reply if u can tell me how to do it.
Idly Vada
Ranch Hand

Joined: Sep 02, 2003
Posts: 135
You can create an invisible frame and through this you can exchange data between servlet and the client side page. Based on the response from the server, make necessary changes on the client side.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to limit servlet response
 
Similar Threads
Dynamic tree component
Preserving State
Question about DOM scripting
Server pushing of a JSP
How to Create Directory structure similar to Microsoft Explorer