RE: HttpUtil

2001-02-13 Thread Cox, Charlie
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

RE: HttpUtil

2001-02-13 Thread Randy Layman
: 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

RE: HttpUtil

2001-02-13 Thread CPC Livelink Admin
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

Re: HttpUtil

2001-02-13 Thread sun
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

Re: HttpUtil

2001-02-13 Thread sun
, 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

Re: HttpUtil

2001-02-13 Thread sun
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

RE: HttpUtil

2001-02-13 Thread CPC Livelink Admin
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

Re: HttpUtil

2001-02-13 Thread sun
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

Re: HttpUtil

2001-02-12 Thread Craig R. McClanahan
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

Re: HttpUtil

2001-02-12 Thread sun
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

Re: HttpUtil

2001-02-12 Thread sun
] 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

Re: HttpUtil

2001-02-12 Thread Craig R. McClanahan
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

Re: HttpUtil

2001-02-12 Thread Craig R. McClanahan
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

Re: HttpUtil

2001-02-12 Thread sun
, 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

Re: HttpUtil

2001-02-12 Thread Chris Janicki
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

Re: HttpUtil

2001-02-12 Thread sun
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

RE: HttpUtil

2001-02-12 Thread CPC Livelink Admin
:[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

Re: HttpUtil

2001-02-12 Thread sun
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

HttpUtil

2001-02-11 Thread sun
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

Re: HttpUtil

2001-02-11 Thread Chris Janicki
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

Re: HttpUtil

2001-02-11 Thread sun
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

Re: HttpUtil

2001-02-11 Thread Chris Janicki
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

Re: HttpUtil

2001-02-11 Thread sun
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