Hi marco,
But the forward method forwards a request from a servlet to another
resource (servlet, JSP file, or HTML file) on the server. If the asp is on
the same server, I think it is a good solution.
I hope a solution that is like the above one but can post a request to
an URL on differrent server.
Thanks for all your replies again.
Guohong Xing
----- Original Message -----
From: "Marco M" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 17, 2000 5:55 PM
Subject: Re: About post functionality to servlet.
> Hi,
> i don't know much about ASP....i have done everything with JSP
> anyway, you can use, for example, ServletContext and RequestDispatcher for
> sending data to a JSP
> in the servlet u have to write this code:
>
> ServletContext sc = getServletContext();
> RequestDispatcher rd = sc.getRequestDispatcher(ASP_URL);
> request.setAttribute(Name, YourData);
> rd.forward(request, response);
>
> hope that this helps
>
> regards
> marco
>
> > -----Original Message-----
> > From: EXT Xing guohong [mailto:[EMAIL PROTECTED]]
> > Sent: 17. October 2000 12:35
> > To: [EMAIL PROTECTED]
> > Subject: Re: About post functionality to servlet.
> >
> >
> > Thanks for your reply.
> > Now I get the a new requirement to code business logic in
> > servlet and
> > display the data in asp. So after the servlet implement the
> > business logic,
> > without any display and post the data in the servlet to an
> > asp, let the asp
> > display them.
> > I do not know whether it is possible ot not. Any suggestion?
> >
> > Guohong Xing
> >
> >
> > ----- Original Message -----
> > From: "Scott Evans" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 17, 2000 5:11 PM
> > Subject: Re: About post functionality to servlet.
> >
> >
> > > What do you mean?
> > >
> > > -----Original Message-----
> > > From: Xing guohong [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, October 17, 2000 10:58 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: About post functionality to servlet.
> > >
> > >
> > > Hi,
> > > Is it possible to implement post function in servlet(not receive
> > post)?
> > >
> > > Any help will be great appreciated!
> > >
> > > Guohong xing
> > >
> > >
> > ==============================================================
> > =============
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > > http://java.sun.com/products/jsp/faq.html
> > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> > >
> > ==============================================================
> > =============
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > > http://java.sun.com/products/jsp/faq.html
> > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> > ==============================================================
> > =============
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets