Hi,

If you are using Internet Explorer, you can get NULL values from a POST by
hitting the [enter] key instead of using the post button. Are you checking for
this scenario?

Later...
...charles

Son To wrote:

> another interesting I noticed is that if I submit the form without
> entering data uname and passwd is not null but the empty string. This is
> unusual.
>
> On Thu, 15 Jul 1999, Son To wrote:
>
> > > If this is the code that triggered the stack trace you originally posted
> > > (null pointer exception at line 60 of AuthenticateServlet), then my
> > > previous comments still apply.  Note that you are never even getting to
> > > the Rexec.login() call at line 76.
> >
> > OK I put in an if statment to test for when uname and passwd is null so I
> > no longer get the error page. However, I've done CGI programming in C
> > before and I've never encountered a situation where form data in POST is
> > null when actual data are entered into the form. There is a
> > pattern in when the data is null. I output the value of uname and passwd
> > to stderr and the values are null in a 1 period cycle. First time you
> > submit the form, its not null, submit it a second time and its null,
> > third time not null, etc.. This behavior is probably not in the
> > specification of an HttpServlet
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > READ THE FAQ!!!!     <http://java.apache.org/faq/>
> > Archives and Other:  <http://java.apache.org/main/mail.html/>
> > Problems?:           [EMAIL PROTECTED]
> >
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> READ THE FAQ!!!!     <http://java.apache.org/faq/>
> Archives and Other:  <http://java.apache.org/main/mail.html/>
> Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to