You are saying you are doing a POST and passing parameters in the URL?
e.g. POST /servlet/projects?name=joe.  If thats the case then your
Servlet Engine may not see that parameter.  The engine only needs to see
the URL parameters in a GET and Form values in a POST...

Formanek Gary L wrote:
>
> I'm using servletrunner, so it should be OK. Basically I'm doing what I
> showed below with a post from an html web page with the action equal to
> below. Again, I don't get a value for name. It finds nothing and returns
> null. All of the other form name/value pairs work fine, but the parameters
> in the URL do not come thru.
>
> Thanks,
>
> Gary
>
> > -----Original Message-----
> > From: Gabriel Wong [SMTP:[EMAIL PROTECTED]]
> > Sent: Monday, March 15, 1999 9:29 AM
> > To:   A mailing list for discussion about Sun Microsystem's Java Servlet
> > API  Technology.; Formanek Gary L
> > Subject:      Re: getParameter for POST
> >
> >
> > getParameter should work for both GET and POST.  So there could be a
> > problem with your Servlet Engine?
> >
> > Formanek Gary L wrote:
> > >
> > > Hi,
> > >
> > > I was always under the impression you could use something such as
> > > req.getParameter("name") to get the parameter values off the URL such as
> > > http://127.0.0.1/servlet/projects?name=joe. What I have found is that it
> > is
> > > null. Can't you do this with a post from a web page? It works just fine
> > for
> > > the form values on a web page. I know I can use parseQueryString(), but
> > this
> > > seems messy and I was hoping I could use the first one.
> > >
> > > 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

Reply via email to