Hello, I'm new to this list, and to servlets. I've been java
programming for two years or so, and am just now getting in to
"web" programming....
My question is:
 Is there a way to read a web page in to a buffer for appending?
As an example if I wanted to append my name to the end of a page
when a user clicks a button. How can I do something like..

public void doPost (HttpServletRequest request,
HttpServletResponse response) throws ServletException,
IOException
{
PrintWriter             out;
response.setContentType("text/html");
out = response.getWriter();

// This obiouly won't work
StringBuffer webPage = readWholeWebpage();
webPage.append("<H1>Gehan Gehale</H1>");

//Print the webpage along with my added text
out.println(webPage);
out.close();
}

Any help on how to read a page in to a buffer, or string would
be much appreciated.

Gehan Gehale
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

___________________________________________________________________________
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