getParametersValue?

Hi all,

I collect four names and some associated info from the client. My request will contain a series of arrays (ie. nam1[], nam2[], etc. When my user posts I want to collect just nam1[0], nam2[0] etc....How do I do that? I'm new to this and I've never worked with Arrayscoming back from the client in a request. I thought I remember reading something about a 'getParametersValue()' Can someone give me a hand :)

Regards,

Mat

[463 byte] By [MatLL] at [2007-9-26 2:14:02]
# 1

Mat:

I maynot have understood your prob truly. But to me it seems that you are collecting info about people (or something) into arrays. In the case you mentioned there are four such instances of something with the data in four arrays. Personally, if this is what you are trying to do then I would collect the data into four Beans, Not Arrays.

I would have a Bean class called SomeBeanData which will hold the data currently in Arrays as you have. In this Bean class I will have a method called getName() which will return the String name that I am interested in.

Instead of having a series of arrays on the request, with this approach I will have references to the bean objects and so I can call the getName() method on the beans.

Again, while your application may have specific requirements, from what you described here, this is what I could make.

HTH.

- madhav

mlakkapr at 2007-6-29 9:09:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...