----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Hi,
On Mon, 3 Jan 2000, A EINS I.T. GmbH - Markus Schell wrote:
AEITGM| the Form data in my database I want to redirect to another Servlet that
AEITGM| makes the HTML Output ( or a JSP depending on the Problem). How can I do
AEITGM| that; I want the full Form data in the second Servlet, too.
In your case, there are three ways:
1) append the Data as GET-parameters to the redirect URL. Con: You see
the parameters in the browser and you may not post parameters of
arbitrary length
2) Save the parameters in the session and just append the
session-identifier (encodeRedirectURL() ..)
3) In your special case: append the primary key of the database entry as
GET parameter and get the data from there in the second servlet.
Requires both servlets to have DB-access though.
Anyway, the only way to pass parameters with redirects is to append them
as GET parameter. If you redirect to the same server you may use cookies
.. but this is only recommended to convey session identifiers (people
don't like cookies and turn them off usually, so GET parameters work
always).
ciao,
-hen
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]