Hi,

My code looks exactly like what you see below in Lee's message but it
doesn't work.  The link text appears, but no link.  Any suggestions?

Duke

-----Original Message-----
From: Lee Coomber <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, May 26, 1999 3:44 PM
Subject: Re: generating HTML with servlets


>Duke, I'm not sure I understand what you are asking. If you want to serve a
>page that contains a HTML link, just print the HTML to the
>HttpServletResponse output stream:-
>
>In your service/doGet/doPost etc method:-
>
>ServletOutputStream out = [your HttpServletResponse
object].getOutputStream()
>out.println("<html><body>");
>out.println("<a href=\"http://www.yourlink.com/\">Link text here</a>");
>out.println("</body></html>");
>out.flush();
>out.close();
>
>Remember to escape all quotes by preceding them with a backslash.
>
>Lee
>
>At 14:38 26/05/99 -0500, you wrote:
>>Hi,
>>
>>How can I generate a HTML text link  with a servlet?
>>
>>Duke
>>
>
>Lee Coomber
>[ >LATERAL *~; ] - [ [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

___________________________________________________________________________
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