I did the same using a "get"
The link on the name should be something like:
<a href="/servlet/YOURSERVLET?entry=ENTRYNUMBER">NAME</a>
in YOURSERVLET use getParameter("entry") to retrive the entry.
With the post you have to make a form for each cell.
I can think of a few trick to avoid this but it is much easier to use a get.
You can have your user select a checkbox before submiting the form to
specify the cell.
You can call a javascript before submitting the form to fill in an hidden
field with the right entry...
Make your choice
-----Message d'origine-----
De : Ray Allis <[EMAIL PROTECTED]>
� : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date : mercredi 31 mars 1999 00:32
Objet : How do I send a table cell's contents to a servlet?
>I can not find an example (that I recognize as such ;)).
>
>I have a people list, retrieved from an LDAP server, displayed as
>HTML by a search servlet.
>
>Each row has name, org, email ... I want to click on a name or an
>organization number in the table and get the details, using a "get one
entry"
>servlet. Can I do this without making every cell a <form> - submit
</form>?
>Can it be a "Post"?
>
>When I have the org. description displayed, I want to search for all people
>in that org (the first servlet again).
>
>Ray Allis - [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