yea that usually what i do (note my last 3 lines) :)
If this is because he wants to see what is being passed by looking at the
URL,
then this can be done using System.out.print(ln) statements in the doXXX
statements.
-Tim

-----Original Message-----
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 11:04 AM
To: [EMAIL PROTECTED]
Subject: Re: Forward


I assumed he meant a different server, in which case getting the context is
useless.  Just stick my code suggestion in the receiving servlet and *wa-la*
he gets the post processed by doGet().

Mark

-----Original Message-----
From: Chen, Gin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 11:01 AM
To: [EMAIL PROTECTED]
Subject: Re: Forward


I think he means to a different servlet.
In this case, it would depend on if the servlet was within your application
or not.
If it is, then you can do a RequestDispatcher.forward. For the url of the
RequestDispatcher, you would have to build it to become a GET string by
pulling the params and building it urself.
You might consider having a Filter to convert this for you. Less messy.
IF the servlet is in a different application than you need to do a search
for URLConnection in the archives but the principal is the same.
On Mark's point though, why dont u just have one calling the other so that
it doesnt matter which gets the request?
Especially since you are talking about get in this case.
-Tim

-----Original Message-----
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 10:46 AM
To: [EMAIL PROTECTED]
Subject: Re: Forward


Is this a trick question?

public void doPost( ... req, ... res) {
        doGet( req, res);
}

Mark

-----Original Message-----
From: Matthias Hanel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 5:53 AM
To: [EMAIL PROTECTED]
Subject: Forward


I wanna forward a request from one Servlet to another.

My problem is, that I'm sending the forward in the post method and wanna
receive it
in the get method of the other servlet.
But I always receive it in the post method.

Is There a possibility to solve this problem?

----------------------------------------------------------------------------
----------------
Hanel Matthias
Fachinformatiker (Anwendungsentwicklung) in Ausbildung
Logistik World GmbH     Fon:    +49-841-9014-300
Marie-Curie-Strasse 6   Fax:    +49-841-9014-302
D- 85055 Ingolstadt     mailto:[EMAIL PROTECTED]
----------------------------------------------------------------------------
----------------

___________________________________________________________________________
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

___________________________________________________________________________
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

___________________________________________________________________________
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

___________________________________________________________________________
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

___________________________________________________________________________
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

Reply via email to