I'm not sure if I understand you completely but trying to read the html of the page 
that posted to your servlet is impossible, that cannot be achieved in any way.

what the request contains is whatever values you stick into a form or the Url that you 
use to make a request for a servlet.

.henric


----- Original Message -----
From: Formanek Gary L <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 20, 1999 9:57 PM
Subject: Reading all input from a page


Hi,

I have a form and I would like to be able to touch all the input (or text,
tags, etc.), including links or any other text by parsing the page - is this
at all possible? For example, if I have a href on the page, I want to be
able to tell what it is. I can get the form fields, etc. I have tried the
following, but nothing seems to come thru. Anyone have any pointers on this.
I'm using this in doPost().

if (req.getContentLength() > 0)
{
        try
        {
                java.io.BufferedReader br = req.getReader();
                String line = null;

                while((line = br.readLine()) != null)
                {
                        log("line = " + line + "\n");
                }

        }
        catch (IllegalStateException e)
        {
                log("IllegalStateException for getting BufferedReader");
        }
}

Thanks,

Gary

___________________________________________________________________________
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