> It's worth an effort as a web page quite possibly won't work 
> properly if its query string is longer than 255 characters.

It's not that I don't understand the problem, I just don't see it being much of 
an issue.

> JavaScript can achieve it but it's not a good choice because 
> clients may diable it.

They can also type in more than 255 characters no matter how short you make 
your parameter names, so it's kind of a losing battle. URL length restrictions 
are generally only an issue with pretty old browsers and some proxies anyway.

> What do you think?

If I were dealing with this my first approach would be to re-define the problem 
to avoid a GET request in the first place. (Well, my *first* approach would be 
to assume that it's rarely, if ever, going to be an issue.)

For example, if your goal is to create a savable search link consider taking 
POST parameters and massaging them somehow to create a linkable URL, like 
TinyURL does.

If for some reason that was unworkable I'd consider a custom request processor 
to perform the request parameter => ActionForm property mapping if it was 
required across the entire site, and if it was a single action I wouldn't do 
much at all.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to