Hello I have a question: In which order does a request.getParameters come? To illustrate my question, a small piece of code:
Now, when I change the name of the Fields, the order in which they are printed also change...this is ofcourse something I don't want, cause I want to insert the data in a Database and for the, the order in which they are inserted is very important... (In short, my actual problem is to read a page dynamically, and put the values in an Insert Statement...so if I'm doing something wrong, can someone please tell me??) Thanks in Advance, Erik Pragt
I don't know much about DB (my weakest point) but if you have to depend on the order of parameters being fixed, I'd say re-think your approach. I recommend you associate a param name with a value, independently of what order it "came in"
Tony Alicea Senior Java Web Application Developer, SCPJ2, SCWCD
Can you give an example of that? PS, this has nothing to do with DB's, it's just a mere example of using it in combination with DB's. It could e.g. also be used for saving it to a file, creating an array with these values, whatever, as long as the order in which the value came in stays the same, or that I have some control about it. [This message has been edited by Erik Pragt (edited October 08, 2001).]
That's also not possible, cause that would screw up the idea of having the page post data dynamically...changing a properties file is taking (almost) the same effort as changing my jsp code. The idea was that I could dynamically load a form, and without knowing the correct number of parameters, still display them in a certain order. But somehow, the order keeps shifting when I change the names of the input field. Now my question is: in which order do they shift, and why?? Erik