Hi,
For instance, you can put the hyperlink like
this:
<A
HREF=""/geccd/servlet/fsleads.leadDetail?column=name&value=abc">
and then in the doGet method of leadDetail
servlet, get the column name and value use method getParameter.
String columnName =
getParameter("column");
String columnValue =
getParameter("value");
Hope this can help.
Jianhong
----- Original Message -----
From: Meng, Dong J (CAP, CDI) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 22, 1999 11:32
PM
Subject: How to pass value from one servlet to
another servlet in the link
>
> I have a servlet to present information from tables. One column link to
> another servlet. When you click this column, it call another servlet, at the
> same time, it passes the value of this column to the servlet. Suppose the
> value is abc. How can I put abc into the link <A HREF =
> \"/geccd/servlet/fsleads.leadDetail\">, and how the anther servlet will get
> the value abc?
>
> Thanks.
>
> DJ
>
> ___________________________________________________________________________
> 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
