You forgot the closing "</a>".



In a message dated 6/26/2002 1:13:32 PM Eastern Standard Time, [EMAIL PROTECTED] writes:


Subj:Re: Hyperlink Doesn't Work
Date:6/26/2002 1:13:32 PM Eastern Standard Time
From:    [EMAIL PROTECTED] (Yuri Singidas)
Sender:    [EMAIL PROTECTED] (A mailing list for discussion about Sun Microsystem's Java               Servlet API Technology.)
Reply-to: [EMAIL PROTECTED]
To:    [EMAIL PROTECTED]




I think you should pass the ID as parameter but use NSummary to display
the list, like this:
    out.print("<a
href="+req.getContextPath()+"/servlet/Detail?id="+id+"&otherparameter="+otherparameter+">");

   out.print(NSummary);
   out.print("");

I hope this will help.

Bob Prah wrote:

> Hi All,
>
> I have a servlet that makes a connection to a table say NewsTable in a
> mysql database News.
> Table NewsTable  has the ff. columns Id, Nsummary and Detail. I am
> able to access table
> NewsTable and display the contents in the various columns namely Id,
> Nsummary and Detail in  a
> servlet.
>
> My objective is to display each item in column Nsummary in a hyperlink
> format so that when it is clicked upon, its corresponding Detail
> content will be displayed. Id is the index and unique.
>
> I have been able to transformed each content of Nsummary into a
> hyperlink on display in my
> servlet, however when I click on the link, it leads me to the index
> page my web. appl.
>
> I suppose I am doing something terribly wrong. getting this result. I
> used  a  code segment
> like this :
>
>
>       for (int i=1; i <= Nsummary.length; i++){
>
>        out.println("<div>>                     Nsummary[i] +
>                    "


</div>
");
>
>        }
>
> I Would appreciate any suggestion that anyone has to the above. Thank
> you.
>
> p.s. : sorry, my previous problem description  was not clear enough
>

___________________________________________________________________________
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



----------------------- Headers --------------------------------
Return-Path: <[EMAIL PROTECTED]>
Received: from  rly-xj05.mx.aol.com (rly-xj05.mail.aol.com [172.20.116.42]) by air-xj05.mail.aol.com (v86_r1.13) with ESMTP id MAILINXJ53-0626131332; Wed, 26 Jun 2002 13:13:32 -0400
Received: from  swjscmail2.java.sun.com (swjscmail2.sun.com [192.18.99.108]) by rly-xj05.mx.aol.com (v86_r1.13) with ESMTP id MAILRELAYINXJ57-0626131321; Wed, 26 Jun 2002 13:13:21 -0400
Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])
   by swjscmail2.java.sun.com (Postfix) with ESMTP
   id 7F2EA23791; Wed, 26 Jun 2002 11:11:06 -0600 (MDT)
Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with
         spool id 2070225 for [EMAIL PROTECTED]; Wed, 26 Jun 2002
         11:09:36 -0600
Delivered-To: [EMAIL PROTECTED]
Received: from mail2.state.nj.us (mail2.state.nj.us [199.20.71.253]) by
         swjscmail1.java.sun.com (Postfix) with ESMTP id AC963482F for
         <[EMAIL PROTECTED]>; Wed, 26 Jun 2002 10:59:35 -0600 (MDT)
Received: from iPlanmsg (msg.oit.state.nj.us [10.26.30.10]) by
         mail2.state.nj.us (8.10.2+Sun/8.11.5) with ESMTP id g5QH1RE15966 for
         <[EMAIL PROTECTED]>; Wed, 26 Jun 2002 13:01:27 -0400 (EDT)
Received: from oit.state.nj.us (oit-cgbsz01.oit.state.nj.us [10.37.40.46]) by
         msg.oit.state.nj.us (iPlanet Messaging Server 5.0 Patch 3 (built Mar
         23 2001)) with ESMTP id <[EMAIL PROTECTED]> for
         [EMAIL PROTECTED]; Wed, 26 Jun 2002 13:01:12 -0400 (EDT)
MIME-version: 1.0
X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-Accept-Language: en
References: <[EMAIL PROTECTED]>
Message-ID:  <[EMAIL PROTECTED]>
Date:         Wed, 26 Jun 2002 13:03:10 -0400
Reply-To: [EMAIL PROTECTED]
Sender: "A mailing list for discussion about Sun Microsystem's Java               Servlet API Technology." <[EMAIL PROTECTED]>
From: Yuri Singidas <[EMAIL PROTECTED]>
Organization: OIT
Subject:      Re: Hyperlink Doesn't Work
To: [EMAIL PROTECTED]




Reply via email to