Hi out there,
does anybody know a way to update an existing HTML-page (created by a
servlet) from another servlet ?
My situation is:
I am writing a testprogram in order to learn about servlets . So that
I can compare them to
applets.
I make use of 3 servlets (A, B and C) and a class (model) that holds
the data and the connection to a database.
A acts as the view and can invoke/display servlet B when the user clicks
on a link (a href),
this is a kind of selection for specific configuration types; the links
are part of a huge table.
Servlet B allows the user to change some parameter for that specific
link. Servlet B calls servlet C that updates the
model .
Now I want servlet A to be updated as well, but not via polling in A.
(like e.g. response.setHeader("Refresh", refreshRate)).
What I currently try within C is:
String view = "test.A"; // name of servlet A
response.sendRedirect (view);
which invokes servlet A, that reads the changed model data.
Not surprisingly , that I have 2 open views after doing this. Is an
update of an existing page possible at all ?
Every clue is welcome.
Thanks in advance
Ralph
--
------------------------------------------------------------------------
Alcatel Kommunikations-Elektronik GmbH
Wohlenbergstr. 3, 30179 Hannover
RD42/Ralph Bursie
Phone : ++49 (0)511 6747-265
Fax : ++49 (0)511 6747-340
e-Mail: mailto:[EMAIL PROTECTED]
http://www.ke-online.de
------------------------------------------------------------------------
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html