Re: Unique Id creation

2009-12-17 Thread jayakumar ala
it still likely wouldn't matter?) -Original Message- From: Todd Grigsby [mailto:strutsu...@tgrigsby.com] Sent: Tuesday, December 15, 2009 3:02 PM To: Struts Users Mailing List Subject: Re: Unique Id creation jayakumar ala wrote: Hi All, I am using struts2 in my web application

Unique Id creation

2009-12-15 Thread jayakumar ala
Hi All, I am using struts2 in my web application. Which is the best way to create unique Id for each file upload i do in my application...? Thanks Ala

Re: Unique Id creation

2009-12-15 Thread Todd Grigsby
jayakumar ala wrote: Hi All, I am using struts2 in my web application. Which is the best way to create unique Id for each file upload i do in my application...? Thanks Ala I've always used the original filename with a time stamp, down to the millisecond formatted with leading zeros and

Re: Unique Id creation

2009-12-15 Thread Gabriel Belingueres
I use File.createTempFile: http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html#createTempFile(java.lang.String,%20java.lang.String,%20java.io.File) Then I relate the uploaded filename with the saved temp file name in a database table. Gabriel 2009/12/15 Todd Grigsby

Re: Unique Id creation

2009-12-15 Thread jayakumar ala
I am trying to upload multiple files in my application , So i am looking for different approach to create unique Id for all the uploaded files. Any suggestions are appreciated. On Tue, Dec 15, 2009 at 1:54 PM, Gabriel Belingueres belingue...@gmail.comwrote: I use File.createTempFile:

Re: Unique Id creation

2009-12-15 Thread Patrick J Kobly
java.util.UUID.randomUUID() ? http://java.sun.com/j2se/1.5.0/docs/api/java/util/UUID.htm PK jayakumar ala wrote: I am trying to upload multiple files in my application , So i am looking for different approach to create unique Id for all the uploaded files. Any suggestions are appreciated.

RE: Unique Id creation

2009-12-15 Thread Lee Clemens
?) -Original Message- From: Todd Grigsby [mailto:strutsu...@tgrigsby.com] Sent: Tuesday, December 15, 2009 3:02 PM To: Struts Users Mailing List Subject: Re: Unique Id creation jayakumar ala wrote: Hi All, I am using struts2 in my web application. Which is the best way to create unique