Title: RE: HttpUtil
you should actually use :
String[] paranames = request.getParameterValues(checkboxName);
then you should be able to use paranames[0],paranames[1]...to get your values.
-Original Message-
From: sun [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001
: HttpUtil
I tried, in array, it contains 5 values, 1,2,3,4,5, cann't get exactly which
I selected.
-Original Message-
From: CPC Livelink Admin [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, February 12, 2001 9:56 PM
Subject: RE: HttpUtil
A quick read of the docs
t;foo" VALUE="Bar6"Foo/INPUT
INPUT type="submit" name="submit" value="sUbmit" /
/FORM
/BODY
/HTML
-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 7:35 AM
To: [EMAIL PROTECTE
Title: RE: HttpUtil
yes, I can get String[] paranames,
five values, 1,2,3,4,5, but I only checked 1,2,4, how can I get these three
values? if use HttpUtil, I can get directly checkboxname=1,2,4
-Original Message-From:
Cox, Charlie [EMAIL PROTECTED]To: '[EMAIL PROTECTED
, February 13, 2001 7:10 AM
Subject: RE: HttpUtil
Then your HTML or web browser is not correct. I use this method for
exactly what you are trying to do and it works just fine.
Randy
-Original Message-
From: sun [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 1:58 PM
To: [EMAIL
yes, for get method, it is working, but I have to use post method.
rgds
sun
-Original Message-
From: CPC Livelink Admin [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Tuesday, February 13, 2001 9:15 AM
Subject: RE: HttpUtil
It works for me as well. The only caveat
ssage-
From: sun [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 10:15 AM
To: [EMAIL PROTECTED]
Subject: Re: HttpUtil
yes, for get method, it is working, but I have to use post method.
rgds
sun
-Original Message-
From: CPC Livelink Admin [EMAIL PROTECTED]
To: [EMAIL PROTECT
yes, it is working. Thank you very much.
rgds
sun
-Original Message-
From: CPC Livelink Admin [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Tuesday, February 13, 2001 9:43 PM
Subject: RE: HttpUtil
Well, I just changed the form from "get" to "post&q
sun wrote:
yes, I tried that, got same error, "short read",
in terms of docs, it means posted inputstream is invalid, but I am not sure
about that.
One reason you could get a "short read" response is if the servlet container
has already read the input stream's contents. For example, if you
no, I didn't call request before using HttpUtil, HttpUtil was put at first
line in .jsp.
-Original Message-
From: Craig R. McClanahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, February 12, 2001 2:48 PM
Subject: Re: HttpUtil
sun wrote:
yes, I tried
]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Tuesday, February 13, 2001 10:56 AM
Subject: Re: HttpUtil
no, I didn't call request before using HttpUtil, HttpUtil was put at first
line in .jsp.
-Original Message-
From: Craig R. McClanahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED
sun wrote:
no, I didn't call request before using HttpUtil, HttpUtil was put at first
line in .jsp.
But the JSP page did it for you (that is, the generated servlet did).
Simply use the standard JSP mechanisms to retrieve request attributes and you
should be fine. If you *really* want
PROTECTED]
Date: Tuesday, February 13, 2001 10:56 AM
Subject: Re: HttpUtil
no, I didn't call request before using HttpUtil, HttpUtil was put at first
line in .jsp.
-Original Message-
From: Craig R. McClanahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday
, 2001 9:14 PM
Subject: Re: HttpUtil
sun wrote:
no, I didn't call request before using HttpUtil, HttpUtil was put at
first
line in .jsp.
But the JSP page did it for you (that is, the generated servlet did).
Simply use the standard JSP mechanisms to retrieve request attributes and
you
should
String paraname = request.getParameter("checkboxName"); // 'request' is a
built-in JSP object
Original Message
On 2/13/01, 12:21:40 PM, "sun" [EMAIL PROTECTED] wrote regarding Re:
HttpUtil:
but how to get parameter value passed from previous page, 5 checkbox with
I only get one, paraname=1, actually I checked 4 boxes, in terms of posted
inputstream, I should get a array of value, it should be paraname=1,2,4,5.
that is why I have to use HttpUtil, but now it is not working, so where is
wrong? maybe I should use servlet instead of jsp, than inputstream
:[EMAIL PROTECTED]]Sent:
Tuesday, February 13, 2001 12:45 PMTo:
[EMAIL PROTECTED]Subject: Re: HttpUtilI only get
one, paraname=1, actually I checked 4 boxes, in terms of postedinputstream,
I should get a array of value, it should be paraname=1,2,4,5.that is why I
have to use HttpUtil, but now
I tried, in array, it contains 5
values, 1,2,3,4,5, cann't get exactly which I selected.
-Original Message-From:
CPC Livelink Admin [EMAIL PROTECTED]To:
[EMAIL PROTECTED]
[EMAIL PROTECTED]Date:
Monday, February 12, 2001 9:56 PMSubject: RE:
HttpUtil
hi, there,
I use HttpUtil to get post data, but always get error: short read.
what is wrong? in
parsePostData(int len, ServletInputStream in) ,
which number should I assign to 'len'?
thanks.
rgds
sun
-
To unsubscribe, e-mail
Wouldn't that be the value of the request's "Content-length"?
Original Message
On 2/12/01, 10:39:27 AM, "sun" [EMAIL PROTECTED] wrote regarding
HttpUtil:
hi, there,
I use HttpUtil to get post data, but always get error: short read.
what is wrong? in
p
ubject: Re: HttpUtil
Wouldn't that be the value of the request's "Content-length"?
Original Message
On 2/12/01, 10:39:27 AM, "sun" [EMAIL PROTECTED] wrote regarding
HttpUtil:
hi, there,
I use HttpUtil to get post data, but always get error: short read.
what is wr
Hmmm... you can always try to look at the source code for
parsePostData()... that is the beauty of open-source.
Original Message
On 2/12/01, 12:14:52 PM, "sun" [EMAIL PROTECTED] wrote regarding Re:
HttpUtil:
yes, I tried that, got same error, "short read",
in ter
PROTECTED]
Date: Sunday, February 11, 2001 10:02 PM
Subject: Re: HttpUtil
Hmmm... you can always try to look at the source code for
parsePostData()... that is the beauty of open-source.
Original Message
On 2/12/01, 12:14:52 PM, "sun" [EMAIL PROTECTED] wrote regarding Re:
HttpU
23 matches
Mail list logo