I think you miss '?' before 'id'
<TR><TD><A
HREF=showCostCenterDetailQueryResults?id=0000001>0000001</A></TD><TD
align=right>543.0</TD><TD
align=right>$35.35</TD></TR>
Andi
"[Steven Shaw]"
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
.COM> cc:
Sent by: "A mailing Subject: Re: getParameter("id")
from <A HREF servlet/foo id="abc"> returns
list for discussion nul l
about Sun
Microsystem's Java
Servlet API
Technology."
<SERVLET-INTEREST@JAV
A.SUN.COM>
05/15/01 06:55 AM
Please respond to "A
mailing list for
discussion about Sun
Microsystem's Java
Servlet API
Technology."
<TR><TD><A HREF=showCostCenterDetailQueryResults
id=0000001>0000001</A></TD><TD align=right>543.0</TD><TD
align=right>$35.35</TD></TR>
I have explicitly called this line with the following other options:
1: id="0000001"
2: id="x0000001"
The use of quotes, or starting the id with an alpha does not seem to
matter.
Since this is one line of hundreds generated from a query that (even though
it groups on this value) may be duplicated, I've called the line singularly
from another page to eliminate the possibility of duplicate ids on the same
page. Still null. Here's the servlet code, nothing special:
pWOut.println( request.getParameter("id") );
Thanks for your time.
-----Original Message-----
From: Chalapathi Rao A L [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 7:28 AM
To: [EMAIL PROTECTED]
Subject: 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
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