It may very well be in the HTTP RFC for maximum length, but I'll bet you
dollars to donuts that many browsers won't support it up to that length.  ;)
I've run into problems with IE 4 puking over a 512 chars.  Browsers *should*
match the spec, but don't always.  It's a pointless risk to take in a
project when you can gain the benefits of a post for zero cost in a JSP.

Doing any kind of insertion or other side-effect process on a get is a risky
proposition, anyway.  User might bookmark the page or hit refresh, causing
your server-side action to take place again accidentally.  As a general rule
of thumb with web stuff, you should use a post when the page is going to
cause side-effects of some kind.  Use a get when the page is only going to
return information to the user (search, generate report, etc).

   Mike

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Luis Javier Beltran
Sent: Tuesday, October 24, 2000 3:04 PM
To: [EMAIL PROTECTED]
Subject: Re: [JSP-INTEREST] Limit on the length of a variable passed in
the URL


It's an HTTP limitation, not just a browser limitation
----- Original Message -----
From: "Michael Donnelly" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 24, 2000 4:11 PM
Subject: Re: Limit on the length of a variable passed in the URL


> The real limitations on the size of a URL are in browsers, not JSP or the
> server.  Different browsers will swallow URL's of different sizes.  For
> something that hefty, I'd suggest POSTing it to avoid annoying edge
> conditions with browsers and proxies.  It's just as easy to handle with
JSP.
>
>    Mike
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Yamijala, Kalyan
> Sent: Tuesday, October 24, 2000 1:39 PM
> To: [EMAIL PROTECTED]
> Subject: [JSP-INTEREST] Limit on the length of a variable passed in the
> URL
>
>
> Hello All,
>
> Does anyone know if there is a limit on the length of a variable I can
pass
> to a JSP page in a URL. I have a feedback system and I am passing about 40
> line text as a variable in the URL. Does it work?
>
> Thank you
> Kalyan
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to