I am simply using this:

String go = req.getParameter("go");
if(go.equals("tips")){
showTips(res);
}

and I get the java.lang.NullPointerException on the
browser. Could you show me how you do it in simple
code?

roy


--- Robert Nicholson <[EMAIL PROTECTED]> wrote:
> What happens when you iterate over the requests
> parameter list. What's
> there? What to does QueryHash's keyEnumerator show?
>
> > -----Original Message-----
> > From: A mailing list for discussion about Sun
> Microsystem's Java Servlet
> > API Technology.
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> roy
> > woods
> > Sent: Saturday, April 07, 2001 12:34 PM
> > To: [EMAIL PROTECTED]
> > Subject: Query String Value is returning null.
> why?
> >
> >
> > Hi all
> >
> > In my Servlet I have a link like this:
> > http://localhost/servlet/Library?go=tips But the
> Query
> > string value is ignored. I mean, go has no value.
> > and the parameter go returns null. On my browser I
> > therefore get
> >
> > Error: 500
> >
> > Location: /servlet/Library
> >
> > Internal Servlet Error:
> >
> > java.lang.NullPointerException:
> >
> > How can I get the query string values?
> >
> > Thanks in advance
> >
> > roy
> >


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.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