hey it is very very urgent plz reply

I have to write a Servlet which takesmultiple Mailids from TO,CC of compose page just likein ourMails Compose and stores in the data base by dividing the userids taking the delimiter as comma.Regards,Lucky9
[241 byte] By [Lucky9a] at [2007-10-2 13:41:39]
# 1

First, urgent is from your point-of-view only. Personally, I am not concerned in the slightest. That having been said, were I in your shoes, I would be concerned indeed.

The 'requirements' you have given are far too vague. What is the actual problem you are experiencing. If you have an aspect of your design that is stumping you, post a concise question. If you are running into a runtime error, post the stack trace and say where you are stuck. No one is going to write an application for you. If you want that go to http://www.rentacoder.com

- Saish

Saisha at 2007-7-13 11:35:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

The String class has a split() method that you can use in this case.

String[] toarray = to.split(",");

for(int i = 0; i < toarray.length; i++){

String tovalue = toarray[i].trim();

// do something with the tovalue

}

gimbal2a at 2007-7-13 11:35:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
My apologies to the OP. I totally mis-read the question. TO (capitalized) made me think of Transfer Object. Gimbal has provided an excellent solution.- Saish
Saisha at 2007-7-13 11:35:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...