Jennifer,
You are partially correct when you say I was assuming the entire HTML page
gets sent. It was more like I realize it doesn't get sent normally but was
hoping somehow that the servlet engine in conjunction with the JSDK api
would allow me to access the page some way. That is why I was looking at
req.getReader(). Since this is not possible, the way I see doing this is to
use a template (product or home-grown) or read the HTML page myself.
Thanks for the feedback,
Gary
> -----Original Message-----
> From: Jennifer Wang [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, April 20, 1999 5:36 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Reading all input from a page
>
> Gary,
>
> You are assuming incorrectly that the entire HTML page that contains a
> form gets
> sent in a request. You only get the form values. The POST will look
> something
> like this if you parse it yourself:
>
> formvalue1=this&formvalue2=that&formvalue3=this+that%30thereabouts
>
>
>
> Formanek Gary L wrote:
>
> > 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
___________________________________________________________________________
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