You can set the attriute in the request(request.setAttribute) object in the
first servlet and the same can b accessed in the next.
Sabari Arasu
AIG - TCS
Chennai
India
> -----Original Message-----
> From: ygku [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, February 06, 2002 11:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: passing vaule
>
> thanks for your answer
> but. it doesn't work
> at sender-side servlet
> out.print("<A
> HREF=\"http://192.168.1.123/servlet/CominfochgServlet\" + ?goods=T123>");
> at receiver-side servlet
> out.println("itemname:" + req.getParameter("goods") + "<br>");
> Can I use ServletContext method to communicate between two servlets?
>
> ----- Original Message -----
> From: "Markus Kirsten" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 04, 2002 10:50 PM
> Subject: Re: passing vaule
>
>
> Sure,
> Just send the parameters you want with the GET request - that is use
> "http://URI?parameter1=value1¶meter2=value2 ... parameterN=valueN"
> and then fetch them with request.getParameter("parameter" etc.
>
> Good luck!
>
>
> Markus
>
> On Monday, February 4, 2002, at 02:25 PM, ygku wrote:
>
> > hi
> > I got stuck with a problem.
> > Is there any way that one servlet passes the value of String with
> > "href" attribute to another servlet ?
> > I'd appreciate if someone give some information.
> > thanks
> >
> >
>
> __________________________________________________________________________
> _
> 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