Raghu,

Put the following code in your while loop where you fetch the data from the
resultset..

out.println("<td ><a href = \"http://localhost/yourlink.html"+
            "?a="+a+"\">"+a+"</a></td>");

Note that you are passing the content of the column 'a' to the next
page(yourlink.html) by specifying  a '?' before it..

Hope this Helps!!
Rao.



----- Original Message -----
From: raghuk <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 13, 2000 9:51
Subject: Hyperlinks


> Good Morning.
>
> I have a servlet that executes a simple Fetch query on database like..
>          SELECT a,b,c FROM TABLE ;
> ... and throws a page with a table having fetched details. The table in
> the page looks like this :
>
>  a               b                  c
>
>  a1a1            b1b1               c1c1
>  a2a2            b2b2               c2c2
>  a3a3            b3b3               c3c3   ... and so-on.
>
>  Now, I want to make all the elements in column 'a' (viz: a1a1,
> a2a2,a3a3..) as hyperlinks, so that I can link them to other pages.
> FYI : All the elements in the table are displayed in different cells.
>
> Can anyone throw some light on this ?
>
> Thanks,
> Raghu.
>
>
___________________________________________________________________________
> 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