Thanks Nic,

I did get and read your post from two years ago, along with otner ones, but I
think there should be a "better" way to deal with this issue.

You mentioned it actually is an HTTP protocol problem, could you elaborate
and/or refer to me ,more stuff about this topic?

Thanks

> >>> Ricardo Camilo Lopez <[EMAIL PROTECTED]> 16-Jun-00 6:28:09 PM
> >>>
>
> >I already searched for "order", "parameter", and didn't
> >find any "decent" way to deal with this issue, I thought
> >it was provided as part of the javax.servlet API.
>
> I think I did post on this - but it was years ago.
>
> >I need to update values in a database from a form submited
> >to a servlet via GET/POST.
> >Since the request object is serially parsed the parameters
> >are gotten in in the order they are read.
> > I want to do it in a way that, the right values are put in the
> >right order in the tables regardless of the order they appear
> >in the page. So when I pass my jdsp's to a designer they
> >can present them as they please.
>
> It's one of the most annoying features of the API, unfortunately it
> is a problem of HTTPs making really - parameter passing depends on
> what sort of FORM object was the source of the parameter data.
>
> What I did was:
>
> 1. enumerate the parameter names into an array
> 2. sort the array however I wanted it sorted
> 3. perform my parameter operation using the array for the names
>
> This is really the best thing you can do... The container could do it
> for you but it wouldn't make any difference to the speed (except to
> decrease speed where for situations where sorting isn't required).
>
> Java 2 provides Collections which make sorting easier.
>
> Nic Ferrier
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to