loading folders name in a combo box.

In a jsp page i am storing a value in a varaible name month ie,
String month = request.getParameter("MONTH");
here i'm getting the value like jan,feb...dec.
In some path eg: e:/reports ... I'm having a bunch of reports with folder strutures  like
 here 20030705 is year month date .. 2003 is year 07  is month and last one 05 is date..
 like that 121212 is hour min sec...
What i have to do is...
After i get jul(for july) in a month variable , i have to get all the folders name which is created on july (only 4 in the above 6) and load it in a combo box so that after submit for a particulat date ...say 20030705 .. i have to load the time (here we have two time folder for that date ) in a combo box and ask the user to select the particular time folder .

Can any one help me ...
Thanks in advance..
regards Arunkumar

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Once you get the the month here is what you will have to do..
String[] arr={"JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"};
String month=request.getParameter("MONTH");
int i=0;

File f = new File("e:\\reports");
String fnames[]=f.list();
<SELECT NAME='MySelect">
for(int j=0; j<fnames.length; j++)
File temp=new File("e:\\reports\\"+fnames[j]);
int mon = Integer.parseInt(fname[j].substring(4,6));

I don't vouch for the correctness of the code written above but it should give you a very clear idea as what is to be done..
Above code may have some syntax error but in essence the logic is there..
do let me know if I can be of more help.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rarunkAuthor Commented:
hi Kuldeepchaturvedi
 It's more than enough for me..
 It's exact what i want...Thanks a lot..
Glad to be any of help to you....:-)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.