Yes. The ? will put the parameter into the request. You'll have to dig it out
of the request object in the doGet() method of your servlet.
--- Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
> With <A HREF servlet/foo id="abc">, you will get null.
>
> Try <A HREF servlet/foo?id=abc>
>
> Pierre-Yves
>
> -----Message d'origine-----
> De : A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]De la part de
> Chalapathi Rao A L
> Envoy� : mardi 15 mai 2001 14:28
> � : [EMAIL PROTECTED]
> Objet : Re: getParameter("id") from <A HREF servlet/foo id="abc">
> returns nul l
>
>
> hi steven,
> can you pass on the exact URL that is causing the problem???
>
>
> - Rao
>
> > ----------
> > From: [Steven Shaw][SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 15, 2001 5:39 PM
> > To: [EMAIL PROTECTED]
> > Subject: getParameter("id") from <A HREF servlet/foo id="abc">
> > returns nul l
> >
> > I've been struggling over this little issue for a couple of days. I
> > need a
> > value passed to a servlet from the <A HREF> calling the servlet. All
> > I get
> > is null. If anyone has actual code that makes this happen I would
> > really
> > like to see it as it exists ( no "foos" or "abcs") What's going
> > wrong?
> > (any new suggestions, Nic?)
> >
> > -Steven Shaw
> >
> > This message may contain information which is private, privileged or
> > confidential and is intended solely for the use of the individual or
> > entity
> > named in the message. If you are not the intended recipient of this
> > message,
> > please notify the sender thereof and destroy / delete the message.
> > Neither
> > the sender nor Sappi Limited (including its subsidiaries and
> > associated
> > companies) shall incur any liability resulting directly or indirectly
> > from
> > accessing any of the attached files which may contain a virus or the
> > like.
> >
> > ______________________________________________________________________
> > _____
> > 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
>
> ___________________________________________________________________________
> 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
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! 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