AW: servlet Query string

2001-03-05 Thread Alan Stenhouse
he same servlet on another servlet machine I had > no problems ! > > > > -Original Message- > From: Alan Stenhouse > [mailto:[EMAIL PROTECTED]] > Sent: Mon, March 05, 2001 2:26 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: AW: se

AW: servlet Query string

2001-03-05 Thread Alan Stenhouse
[EMAIL PROTECTED] > Betreff: servlet Query string > > > Hi every one > > I have a problem in my servlets. > > when someone sends parameters through the query string to my > servlet that > have the character '%' > in it , something like: myservlet?para

RE: Bug in Tomcat 3.3.1 with getPathInfo() ?

2002-04-10 Thread Larry Isaacs
According to RFC2396, '+' is are reserved character in the query string, but not in the path portion of a URL. There was a bug fix in Tomcat 3.3.1 to avoid translating '+' to ' ' in the parts of the URL prior to the query string. Cheers, Larry > -Original

RE: servlet Query string

2001-03-05 Thread shlomi sarfati
05, 2001 2:26 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: AW: servlet Query string you must use "param" + URLEncoder.encode(paramValue) when passing the parameter. i.e. ensure that it's encoded correctly... HTH Alan > -Ursprüngliche Nachricht- >

Re: Bug in HttpServletRequest.getQueryString()? from POST

2001-01-30 Thread horn_ken
request.getInputStream(). Normally they are encoded in the same way as the query string (unless you change the enctype on the form). This isn't a bug. [EMAIL PROTECTED] on 30/01/2001 04:18:59 Please respond to [EMAIL PROTECTED]; Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTE

RE: wrongly URI-decoded request.getPathInfo()

2004-12-08 Thread Shapira, Yoav
that comes after the servlet path but before the query string in the request URL; or null if the URL does not have any extra path information" Decoded is the key word above. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Garret Wilson [mailto:[EMAIL PROTECT

RE: Sending xml string as input to servlet

2003-06-20 Thread Shapira, Yoav
Howdy, You are responsible for URL-encoding the query string. Passing it on the query string is not that good an idea anyways because of the limited length. You're better off passing it as a request parameter (still URL-encoded) in a POST request. Yoav Shapira Millennium ChemInform

Re: Do URL query strings with semi-colons work with TC ?

2005-09-05 Thread Darryl L. Miles
they are directly substitutable from various references around the internet. But your comments imply otherwise. I'd be happy to lookup "path params" in the same way I do for query string params with a call: value = request.getPathParameter(name); Can I do this ? Conceptual

Re: Repost: taglib and rtexprvalue problem/bug

2001-09-11 Thread Kevin HaleBoyes
no value So, I still see it as a problem with the use of an expression as the attribute value in a custom taglib tag. Kevin HaleBoyes >From: "Craig R. McClanahan" > >I just answered this in the bug report, but will answer here as well >since >it's been raised here

request.setCharacterEncoding not working

2004-11-10 Thread Nick Mitchell
27;ve done some testing and it is clear that the parameters are not decoded correctly if the parameters are passed in using the query string, or from a form with method="GET". If using method="POST" (or using a XMLHTTPRequest set to "POST"), it works fine. Seem

Re: request.setCharacterEncoding not working

2004-11-10 Thread Tim Funk
This works perfectty on OC4J and now I have deployed the app to Jonas (which has tomcat 5.0.28 integrated). I've done some testing and it is clear that the parameters are not decoded correctly if the parameters are passed in using the query string, or from a form with method="GET". I

Re: request.getParameter Error when "%" contained in parameter value

2004-02-16 Thread Tim Funk
ache.org/bugzilla/show_bug.cgi?id=3986) but it was considered "invalid" because forward expects an encoded url. However, I am simply passing a parameter and submitting a form. Doing something like 'action = <%= response.encodeURL("findnaics.jsp") %>' doesn'

URL encoding and ';' rather than '?'

2001-06-02 Thread Charles Baker
); Yeilds an url like this: http://my.domain/some_form.htm;jsessionid=lidfano10 and a 404 not found error. I use JRun at work because my company is predjudiced against free software, and it uses the '?' to separate the url and the query string which I thought was standard. BTW, I'm

Re: request.setCharacterEncoding not working

2004-11-10 Thread Nick Mitchell
f the parameters are passed in using the query string, or from a form with method="GET". If using method="POST" (or using a XMLHTTPRequest set to "POST"), it works fine. Seems like a bug to me, or am I missing something. Nick --

RE: request.getParameter Error when "%" contained in parameter value

2004-02-16 Thread Bill Faulk
The same error occurs for "%25". If I put a "%" anywhere in the parameter I get a crash. "4%" would pass a parameter to query everything starting with 4 in my example. --- Bill Faulk [EMAIL PROTECTED] 801-302-8930 -Original Message- From: Tim Funk [

Re: Repost: taglib and rtexprvalue problem/bug

2001-09-11 Thread Craig R. McClanahan
I just answered this in the bug report, but will answer here as well since it's been raised here. Request URIs (including the query string) processed by servlet containers must conform to the requirements of HTTP. In this case, the relevant spec is RFC 2396, Section 3.2, which describe

Re: request.getParameter Error when "%" contained in parameter value

2004-02-16 Thread Tim Funk
ding pages (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3986) but it was considered "invalid" because forward expects an encoded url. However, I am simply passing a parameter and submitting a form. Doing something like 'action = <%= response.encodeURL("findnaics.jsp")

a brain dump on i18n, tomcat, xerces, oracle, etc.....

2001-03-04 Thread Michael Mealling
ink that you'll get a properly converted string out but you don't. Node.getNodeValue() gives you a String that contains bytes that are still UTF-8 encoded! You have to do this to get 'em into a real Java String: String newCN = new String(query.getCommonName().getBytes(), &quo

RE: jsp page with enctype="MULTIPART/FORM-DATA"

2003-12-10 Thread Kilic, Hakan
Hi FTP (nice name), multipart/form-data doesn't send the value as query string parameters (not a normal post such as application/url-encoded). You can't just do a request.getParameter("someparameter") for a multipart/form-data POST. Try checking out various file upload librar

Re: URL encoding and ';' rather than '?'

2001-06-02 Thread Peter Hrastnik
> Example: > > URL = "http://my.domain/some_form.htm";; > response.sendRedirect(response.encodeRedirectURL(URL)); > > Yeilds an url like this: > http://my.domain/some_form.htm;jsessionid=lidfano10 > > and a 404 not found error. > > I use JRun at work because my company is pred

RE: request.getParameter Error when "%" contained in parameter value

2004-02-16 Thread Bill Faulk
t; contained in parameter value There looks to be a patch against this region of code in 4.1.30. (As compared to 4.1.29) Does the same thing happen there? -Tim Bill Faulk wrote: > The same error occurs for "%25". If I put a "%" anywhere in the > parameter I get a cr

Re: Tomcat and Unicode parameters in URLs ???

2002-03-18 Thread Craig R. McClanahan
ributes you have stored in the current session that indicate > >what the user will be supplying. > > But what happens if you really do not know what character set to expect ? In > our company, the webserver is used for B2B messaging with customers and not > purely serving

Re: jsp page with enctype="MULTIPART/FORM-DATA"

2003-12-10 Thread FTP Admin
ipart/form-data is requested!!! I didn't try the oreilly.com one but does this behave in a different way? Thanks Hi FTP (nice name), multipart/form-data doesn't send the value as query string parameters (not a normal post such as application/url-encoded). You can't just

request.getParameter Error when "%" contained in parameter value

2004-02-16 Thread Bill Faulk
ine is actually generating the error if the parameter contains a %. String code = request.getParameter("code"); I've seen this error when searching in regards to forwarding pages (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3986) but it was considered "invalid" becau

Re: jsp page with enctype="MULTIPART/FORM-DATA"

2003-12-10 Thread Ben Souther
;t try the > oreilly.com one but does this behave in a different way? > > Thanks > > > Hi FTP (nice name), > > > > multipart/form-data doesn't send the value as query string parameters > > (not a normal post such as application/url-encoded). You can'

Re: jsp page with enctype="MULTIPART/FORM-DATA"

2003-12-10 Thread FTP Admin
actually did intend to use the apache file-upload and got into this problem cause multipart/form-data is requested!!! I didn't try the oreilly.com one but does this behave in a different way? Thanks Hi FTP (nice name), multipart/form-data doesn't send the value as query string paramet

Re: URL encoding and ';' rather than '?'

2001-06-02 Thread Charles Baker
http://my.domain/some_form.htm;jsessionid=lidfano10 > > > > and a 404 not found error. > > > > I use JRun at work because my company is > predjudiced > > against free software, and it uses the '?' to > separate > > the url and the query string w

AW: java.lang.OutOfMemoryError

2001-03-22 Thread Ralph Einfeldt
Are you working with cookies or url rewriting? You have to keep some facts in mind: - each session needs some memory - each session will be alive some time after the last request to the session (default: 30 Minutes) - each request without a cookie or an encoded Url that matches an

Can sendRedirect() be used to POST?

2001-01-29 Thread David Wall
t app1.host.com is not even in the same city as the server where www.host.com resides). I don't think that an encrypted, base64 encoded authentication piece will fit in a standard URL query string because of their length limitation. Thanks for any thoughts... David -

RE: Tomcat and Unicode parameters in URLs ???

2002-03-19 Thread Larry Isaacs
ave > > >stored in the current session that indicate what the user will be > > >supplying. > > > > But what happens if you really do not know what character set to > > expect ? In our company, the webserver is used for B2B > messaging with > > c

RE: form-based login username and password encoding issue

2004-08-09 Thread Mark Thomas
: - Parameters in the query string - Servlet paths There is a standard for encoding URIs (http://www.w3.org/International/O-URL-code.html) but this standard is not consistently followed by clients. This causes a number of problems. The functionality provided by Tomcat (4 and 5) to handle this less than

Re: jsp page with enctype="MULTIPART/FORM-DATA"

2003-12-10 Thread Ben Souther
7;t send them at all? > >> > >>I actually did intend to use the apache file-upload and got into this > >>problem cause multipart/form-data is requested!!! I didn't try the > >>oreilly.com one but does this behave in a different way? > >> > >

Re: URL encoding and ';' rather than '?'

2001-06-03 Thread Peter Hrastnik
x27;;' > > rather > > > than '?' when an URL gets encoded? > > > > > > Example: > > > > > > URL = "http://my.domain/some_form.htm";; > > > > > > response.sendRedirect(response.encodeRedirectURL(URL)); > > > > >

Re: AW: java.lang.OutOfMemoryError

2001-03-23 Thread brian luk
y > - each session will be alive some time after the > last > request to the session (default: 30 Minutes) > - each request without a cookie or an encoded Url > that > matches an active session will create a new > session. > - It's quite easy to create me

Re: Can sendRedirect() be used to POST?

2001-01-30 Thread Matt Goss
same city as the server where www.host.com > resides). > > I don't think that an encrypted, base64 encoded authentication piece will > fit in a standard URL query string because of their length limitation. > > Thanks for any thoughts... > David > > --

RE: Tomcat and Unicode parameters in URLs ???

2002-03-20 Thread Soefara Redzuan
looks at incoming requests and decides what > > > >encoding should be used -- perhaps by looking at the > > > >Accept-Language header, or based on > > attributes you have > > > >stored in the current session that indicate what the user will be > > > &g

Re: URL encoding and ';' rather than '?'

2001-06-03 Thread David Crooke
Hainburgerstr. 33 > > Tel.: +43/1/931012/3277, Mobil: +43/650/6503277 > > > > > > > > On Sat, 2 Jun 2001, Charles Baker wrote: > > > > > I've been browsing the archives but still haven't > > seen > > > what I'm looking fo

Re: URL encoding and ';' rather than '?'

2001-06-03 Thread Charles Baker
; I've been browsing the archives but still > haven't > > > seen > > > > what I'm looking for. Why does Tomcat use ';' > > > rather > > > > than '?' when an URL gets encoded? > > > > > > > > Example: > > &

RE: IIS, Tomcat and NTLM Authentication

2005-01-28 Thread Sue Roe
rather than the auth String starting with 'NTLM' it starts with 'Negotiate' in the scenarios that didn't work! The encoded Domain and Username where still there, so I just retrieved them as well. Thanks for your reply Regards Sue -Original Message- From: Allistai

Re: JNDI Realm Help - (using iplanet)

2002-08-20 Thread Tim Funk
I don't know. The reason JNDIRealm did not work was IPlanet returns the SHA digested password as a Base64 encoded (Mime like) string. The (original) tomcat code takes the passsword and converts it to a Hex string. Base64 string will never equal the Hex string. I have no idea what

Re: JNDI Realm Help - (using iplanet)

2002-08-20 Thread Tim Funk
nt * contains the username that is being presented for authentication. * * The distinguished name can be represented by a pattern passed to * an instance of MessageFormat, where the string "{0}" * in the pattern is replaced by the username being

Re: JNDI Realm Help - (using iplanet)

2002-08-20 Thread Randy Secrist
on the data structure in the > * underlying directory server: > * > * Each user that can be authenticated is represented by an individual > * element in the top level DirContext that is accessed > * via the connectionURL property. This element has the > * follo